From 4dc15032ba81c38670dfc42a34603caa6080c21c Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 16 Mar 2017 23:26:59 +1100 Subject: [PATCH] work in progress --- .../org/eclipse/jetty/util/component/AbstractLifeCycle.java | 6 ------ .../eclipse/jetty/util/thread/strategy/EatWhatYouKill.java | 4 +++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/component/AbstractLifeCycle.java b/jetty-util/src/main/java/org/eclipse/jetty/util/component/AbstractLifeCycle.java index f0ef7d94ae6..f9a9894501c 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/component/AbstractLifeCycle.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/component/AbstractLifeCycle.java @@ -225,12 +225,6 @@ public abstract class AbstractLifeCycle implements LifeCycle { this._stopTimeout = stopTimeout; } - - @Override - public String toString() - { - return String.format("%s@%x",getClass().getSimpleName(),hashCode()); - } public static abstract class AbstractLifeCycleListener implements LifeCycle.Listener { diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/thread/strategy/EatWhatYouKill.java b/jetty-util/src/main/java/org/eclipse/jetty/util/thread/strategy/EatWhatYouKill.java index f958add215d..bfcf44cd682 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/thread/strategy/EatWhatYouKill.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/thread/strategy/EatWhatYouKill.java @@ -314,7 +314,9 @@ public class EatWhatYouKill extends AbstractLifeCycle implements ExecutionStrate public String toString() { StringBuilder builder = new StringBuilder(); - builder.append(super.toString()); + builder.append(getClass().getSimpleName()); + builder.append('@'); + builder.append(Integer.toHexString(hashCode())); builder.append('/'); builder.append(_producer); builder.append('/');