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>
/**
* 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;