From 68aee494e7ac532b0b1d9a489f46ced11cf7b63d Mon Sep 17 00:00:00 2001 From: Raju Kumar Gupta Date: Wed, 18 Dec 2024 14:43:48 +0000 Subject: [PATCH] [POOL-238] Refactoring --- .../commons/pool3/impl/TestSoftReferenceObjectPool.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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