Util: Add SimpleTimer2.TimedEvent.toString()

to clean up timer crash messages
This commit is contained in:
zzz
2022-12-22 07:27:04 -05:00
parent d73be206e5
commit 321a21ae9b

View File

@@ -531,6 +531,15 @@ public class SimpleTimer2 {
}
}
/**
* So the critical "please report" message above isn't so ugly
* @since 0.9.57
*/
@Override
public String toString() {
return getClass().getSimpleName();
}
/**
* Simple interface for events to be queued up and notified on expiration
* the time requested has been reached (this call should NOT block,