From 3061b154c376988c6fa897c7aa52454256dc31b0 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 28 Jan 2014 20:17:13 +0900 Subject: [PATCH] Fix inspector warnings --- common/src/main/java/io/netty/util/ResourceLeakDetector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/io/netty/util/ResourceLeakDetector.java b/common/src/main/java/io/netty/util/ResourceLeakDetector.java index 93b9780b80..54ff91a917 100644 --- a/common/src/main/java/io/netty/util/ResourceLeakDetector.java +++ b/common/src/main/java/io/netty/util/ResourceLeakDetector.java @@ -232,7 +232,7 @@ public final class ResourceLeakDetector { private DefaultResourceLeak prev; private DefaultResourceLeak next; - public DefaultResourceLeak(Object referent) { + private DefaultResourceLeak(Object referent) { super(referent, referent != null? refQueue : null); if (referent != null) { @@ -334,7 +334,7 @@ public final class ResourceLeakDetector { recordsToSkip --; } else { buf.append('\t'); - buf.append(e.toString()); + buf.append(e); buf.append(NEWLINE); } }