From e6ed59eb5f4bd4785d993e5a47694bedd4f87784 Mon Sep 17 00:00:00 2001 From: Raju Kumar Gupta Date: Wed, 18 Dec 2024 14:45:10 +0000 Subject: [PATCH] [POOL-238] Refactoring --- .../apache/commons/pool3/impl/TestSoftReferenceObjectPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 bbdc716550..035a0b1659 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