From eacfefb8363c5e8f8a92a2a8cb781e9a6a9e16b2 Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R Date: Wed, 12 Feb 2020 22:15:42 +0100 Subject: [PATCH] Fixed Event.Valueless#toString() to not display the null value --- src/main/java/envoy/event/Event.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/envoy/event/Event.java b/src/main/java/envoy/event/Event.java index 9d42bf5..5b13306 100644 --- a/src/main/java/envoy/event/Event.java +++ b/src/main/java/envoy/event/Event.java @@ -42,5 +42,8 @@ public abstract class Event implements Serializable { private static final long serialVersionUID = -9019362144094097997L; protected Valueless() { super(null); } + + @Override + public String toString() { return this.getClass().getSimpleName(); } } }