diff --git a/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientTLSTest.java b/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientTLSTest.java index 4b768387196..14fc9994c3f 100644 --- a/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientTLSTest.java +++ b/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientTLSTest.java @@ -826,8 +826,7 @@ public class HttpClientTLSTest public ByteBuffer acquire(int size, boolean direct) { ByteBuffer acquired = super.acquire(size, direct); - if (acquired != null) - leakedBuffers.add(acquired); + leakedBuffers.add(acquired); return acquired; } @@ -896,8 +895,7 @@ public class HttpClientTLSTest public ByteBuffer acquire(int size, boolean direct) { ByteBuffer acquired = super.acquire(size, direct); - if (acquired != null) - leakedBuffers.add(acquired); + leakedBuffers.add(acquired); return acquired; } @@ -980,8 +978,7 @@ public class HttpClientTLSTest public ByteBuffer acquire(int size, boolean direct) { ByteBuffer acquired = super.acquire(size, direct); - if (acquired != null) - leakedBuffers.add(acquired); + leakedBuffers.add(acquired); return acquired; }