From 41f8fda3d593c00bc2a1f56294487054a5dd8ea0 Mon Sep 17 00:00:00 2001 From: Alexandre Montplaisir Date: Wed, 1 Jun 2016 23:03:07 -0400 Subject: [PATCH] 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 --- .../lttng-ust-agent-common/org/lttng/ust/agent/LTTngAgent.java | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.34.1