* logging. This dispose function is non-static for backwards
* compatibility purposes.
*/
- public synchronized void dispose() {
- if (instance != null) {
- instance.disposeInstance();
- instance = null;
+ @SuppressWarnings("static-method")
+ public void dispose() {
+ synchronized (LTTngAgent.class) {
+ if (instance != null) {
+ instance.disposeInstance();
+ instance = null;
+ }
}
return;
}