From: Alexandre Montplaisir Date: Thu, 2 Jun 2016 03:03:07 +0000 (-0400) Subject: Suppress static method warning X-Git-Tag: v2.8.1~7 X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=fb30ba0004613d08357def6cdc3122083dd0019e 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) {