Fix: lttng java agent: dispose is non-static
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 11 Apr 2016 22:57:42 +0000 (18:57 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 11 Apr 2016 22:57:42 +0000 (18:57 -0400)
The UST 2.7 java agent LTTngAgent class has a non-static dispose method.
This class is kept in 2.8 for backwards compatibility purposes. Keep
this API unchanged.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/LTTngAgent.java

index 1a6b59a622cf2b6797fdb2e53bb714be6946961b..c98301d738b8aa3a81f17ce240e687c88a047794 100644 (file)
@@ -49,9 +49,10 @@ public class LTTngAgent {
 
        /**
         * Dispose the agent. Applications should call this once they are done
-        * logging.
+        * logging. This dispose function is non-static for backwards
+        * compatibility purposes.
         */
-       public static synchronized void dispose() {
+       public synchronized void dispose() {
                if (instance != null) {
                        instance.disposeInstance();
                        instance = null;
This page took 0.024674 seconds and 4 git commands to generate.