Include correct duped value in DefaultResourceLeak.toString() (#8413)

Motivation:

DefaultResourceLeak.toString() did include the wrong value for duplicated records.

Modifications:

Include the correct value.

Result:

Correct toString() implementation.
This commit is contained in:
almson 2018-10-22 09:01:38 -04:00 committed by Norman Maurer
parent a93ff3a0e4
commit fc35e20e2c

View File

@ -501,7 +501,7 @@ public class ResourceLeakDetector<T> {
if (duped > 0) {
buf.append(": ")
.append(dropped)
.append(duped)
.append(" leak records were discarded because they were duplicates")
.append(NEWLINE);
}