ResourceLeakTracker
as it may lead to false-positives.@Deprecated
public interface ResourceLeak
限定符和类型 | 方法和说明 |
---|---|
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