Show the interval class name in toString() if the interval was cancelled.

I thought we already did this. The new method on RunBuddy is a needless
complication. toString() is what you want. It's what everybody wants.
This commit is contained in:
Ray J. Greenwell
2011-10-20 15:41:46 -07:00
parent 5ff6dd3477
commit f2e09bff6f
@@ -317,7 +317,9 @@ public abstract class Interval
}
@Override public String toString () {
Interval ival = _interval;
return (ival != null) ? ival.toString() : "(Interval was cancelled)";
return (ival != null)
? ival.toString()
: "(Interval was cancelled: " + _intervalClassName + ")";
}
};
}