From 740c68faed4b6c5b5f7b5daec195cf5fc5926d70 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Sun, 22 Oct 2017 13:23:06 +0200 Subject: [PATCH] Add supresswarnings to cleanup 16b1dbdf9244f831aa0cd92d5531d8cb61010b07. Motivation: We should add @SupressWarnings Modifications: Add annotations. Result: Less warnings --- common/src/main/java/io/netty/util/ResourceLeakDetector.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/src/main/java/io/netty/util/ResourceLeakDetector.java b/common/src/main/java/io/netty/util/ResourceLeakDetector.java index ea6f69a951..9b84cd7594 100644 --- a/common/src/main/java/io/netty/util/ResourceLeakDetector.java +++ b/common/src/main/java/io/netty/util/ResourceLeakDetector.java @@ -240,10 +240,12 @@ public class ResourceLeakDetector { * * @return the {@link ResourceLeakTracker} or {@code null} */ + @SuppressWarnings("unchecked") public final ResourceLeakTracker track(T obj) { return track0(obj); } + @SuppressWarnings("unchecked") private DefaultResourceLeak track0(T obj) { Level level = ResourceLeakDetector.level; if (level == Level.DISABLED) {