We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5797b76 commit db645edCopy full SHA for db645ed
test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java
@@ -1001,12 +1001,10 @@ public static BytesReference randomBytesReference(int length) {
1001
}
1002
1003
public ReleasableBytesReference randomReleasableBytesReference(int length) {
1004
- return new ReleasableBytesReference(randomBytesReference(length), new AbstractRefCounted() {
+ return new ReleasableBytesReference(randomBytesReference(length), LeakTracker.wrap(new AbstractRefCounted() {
1005
@Override
1006
- protected void closeInternal() {
1007
- LeakTracker.wrap(AbstractRefCounted.of(() -> {}));
1008
- }
1009
- });
+ protected void closeInternal() {}
+ }));
1010
1011
1012
public static short randomShort() {
0 commit comments