From f2e09bff6fb2abfa5c465df1aea6046497766e5d Mon Sep 17 00:00:00 2001 From: "Ray J. Greenwell" Date: Thu, 20 Oct 2011 15:41:46 -0700 Subject: [PATCH] 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. --- src/main/java/com/samskivert/util/Interval.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/samskivert/util/Interval.java b/src/main/java/com/samskivert/util/Interval.java index e7824d80..6b14eccb 100644 --- a/src/main/java/com/samskivert/util/Interval.java +++ b/src/main/java/com/samskivert/util/Interval.java @@ -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 + ")"; } }; }