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:
@@ -317,7 +317,9 @@ public abstract class Interval
|
|||||||
}
|
}
|
||||||
@Override public String toString () {
|
@Override public String toString () {
|
||||||
Interval ival = _interval;
|
Interval ival = _interval;
|
||||||
return (ival != null) ? ival.toString() : "(Interval was cancelled)";
|
return (ival != null)
|
||||||
|
? ival.toString()
|
||||||
|
: "(Interval was cancelled: " + _intervalClassName + ")";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user