From: Alexandre Montplaisir Date: Thu, 2 Jun 2016 03:03:07 +0000 (-0400) Subject: Suppress static method warning X-Git-Url: http://git.efficios.com/?p=lttng-ust.git;a=commitdiff_plain;h=41f8fda3d593c00bc2a1f56294487054a5dd8ea0 Suppress static method warning The LTTngAgent#dispose method is static on purpose (see commit 9355f049), and will remain so as long as this agent will be supported, so we can suppress the compiler warning telling us the method can be made static. Signed-off-by: Alexandre Montplaisir Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/LTTngAgent.java b/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/LTTngAgent.java index 6b4f0135..ebbe2357 100644 --- a/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/LTTngAgent.java +++ b/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/LTTngAgent.java @@ -52,6 +52,7 @@ public class LTTngAgent { * logging. This dispose function is non-static for backwards * compatibility purposes. */ + @SuppressWarnings("static-method") public void dispose() { synchronized (LTTngAgent.class) { if (instance != null) {