Interface ResourceLeak
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanclose()Deprecated.Close the leak so thatResourceLeakDetectordoes not warn about leaked resources.voidrecord()Deprecated.Records the caller's current stack trace so that theResourceLeakDetectorcan tell where the leaked resource was accessed lastly.voidDeprecated.Records the caller's current stack trace and the specified additional arbitrary information so that theResourceLeakDetectorcan tell where the leaked resource was accessed lastly.
-
Method Details
-
record
void record()Deprecated.Records the caller's current stack trace so that theResourceLeakDetectorcan tell where the leaked resource was accessed lastly. This method is a shortcut torecord(null). -
record
Deprecated.Records the caller's current stack trace and the specified additional arbitrary information so that theResourceLeakDetectorcan tell where the leaked resource was accessed lastly. -
close
boolean close()Deprecated.Close the leak so thatResourceLeakDetectordoes not warn about leaked resources.- Returns:
trueif called first time,falseif called already
-
ResourceLeakTrackeras it may lead to false-positives.