Less confusing leak warning message
This commit is contained in:
parent
88cbdb50d2
commit
e53738f38c
@ -139,7 +139,10 @@ public final class ResourceLeakDetector<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (reportedLeaks.putIfAbsent(ref.exception, Boolean.TRUE) == null) {
|
if (reportedLeaks.putIfAbsent(ref.exception, Boolean.TRUE) == null) {
|
||||||
logger.warn("LEAK: " + resourceType + " was GC'd before being released correctly.", ref.exception);
|
logger.warn(
|
||||||
|
"LEAK: " + resourceType + " was GC'd before being released correctly. " +
|
||||||
|
"The following stack trace shows where the leaked object was created, " +
|
||||||
|
"rather than who failed to release it where.", ref.exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user