public interface ResourceLeak
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Close the leak so that
ResourceLeakDetector does not warn about leaked resources. |
void |
record()
Records the caller's current stack trace so that the
ResourceLeakDetector can tell where the leaked
resource was accessed lastly. |
void record()
ResourceLeakDetector
can tell where the leaked
resource was accessed lastly.boolean close()
ResourceLeakDetector
does not warn about leaked resources.true
if called first time, false
if called already