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 8036a8682..bbdc71655 100644 --- a/src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java +++ b/src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java @@ -58,9 +58,7 @@ protected boolean isLifo() { @Override protected ObjectPool makeEmptyPool(final int cap) { - - final PooledObjectFactory factory = new SimpleFactory(); - return (ObjectPool)makeEmptyPool(factory); + return (ObjectPool)makeEmptyPool(new SimpleFactory()); } @Override