From 321a21ae9bd7c72e58cab3e4c380314120ffc05a Mon Sep 17 00:00:00 2001 From: zzz Date: Thu, 22 Dec 2022 07:27:04 -0500 Subject: [PATCH] Util: Add SimpleTimer2.TimedEvent.toString() to clean up timer crash messages --- core/java/src/net/i2p/util/SimpleTimer2.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/java/src/net/i2p/util/SimpleTimer2.java b/core/java/src/net/i2p/util/SimpleTimer2.java index f2723dbb7..6710d501d 100644 --- a/core/java/src/net/i2p/util/SimpleTimer2.java +++ b/core/java/src/net/i2p/util/SimpleTimer2.java @@ -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,