Have the runnable's toString() report the Interval's name to aid in
debugging. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1632 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -153,6 +153,12 @@ public abstract class Interval
|
||||
public void run () {
|
||||
safelyExpire(IntervalTask.this);
|
||||
}
|
||||
|
||||
// to aid in debugging, this run unit reports its
|
||||
// name as that of the interval.
|
||||
public String toString () {
|
||||
return Interval.this.toString();
|
||||
}
|
||||
};
|
||||
}
|
||||
_runQueue.postRunnable(_runner);
|
||||
|
||||
Reference in New Issue
Block a user