Bug 9060: mdsal-trace tooling with getAllUnique() to find Tx leaks
[controller.git] / opendaylight / md-sal / mdsal-trace / dom-impl / src / main / java / org / opendaylight / controller / md / sal / trace / closetracker / impl / CloseTracked.java
index 6d8524fb3d513d5554e566f04f2be3dc301da3cb..1febe153eace20b415bde54d8b90278545de2bd1 100644 (file)
@@ -11,7 +11,7 @@ import java.time.Instant;
 import javax.annotation.Nullable;
 
 /**
- * Object which can track where it has been created, and if it has been correctly closed.
+ * Object which can track where it has been created, and if it has been correctly "closed".
  *
  * <p>Includes preserving the context of the call stack which created this object, and the instant it was created.
  *
@@ -21,6 +21,6 @@ public interface CloseTracked<T extends CloseTracked<T>> {
 
     Instant getObjectCreated();
 
-    @Nullable Throwable getAllocationContext();
+    @Nullable StackTraceElement[] getAllocationContextStackTrace();
 
 }