diff --git a/src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java b/src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java index bbdc71655..035a0b165 100644 --- a/src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java +++ b/src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java @@ -58,7 +58,7 @@ protected boolean isLifo() { @Override protected ObjectPool makeEmptyPool(final int cap) { - return (ObjectPool)makeEmptyPool(new SimpleFactory()); + return (ObjectPool) new SoftReferenceObjectPool<>(new SimpleFactory()); } @Override