This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch POOL_2_X in repository https://gitbox.apache.org/repos/asf/commons-pool.git
commit b8decf85831b0ece3401bdf39c233440f8ff9b5b Author: Gary Gregory <[email protected]> AuthorDate: Sat Nov 29 15:15:00 2025 +0000 Reduce visibility of some package private class' methods --- .../java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java b/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java index f99bd3f3..4d9ac043 100644 --- a/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java +++ b/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java @@ -23,6 +23,7 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.NoSuchElementException; import java.util.Optional; +import java.util.concurrent.BlockingDeque; import org.apache.commons.pool2.BaseObjectPool; import org.apache.commons.pool2.ObjectPool; @@ -62,8 +63,7 @@ public class SoftReferenceObjectPool<T> extends BaseObjectPool<T> { private long createCount; // @GuardedBy("this") /** Idle references - waiting to be borrowed */ - private final LinkedBlockingDeque<PooledSoftReference<T>> idleReferences = - new LinkedBlockingDeque<>(); + private final BlockingDeque<PooledSoftReference<T>> idleReferences = new LinkedBlockingDeque<>(); /** All references - checked out or waiting to be borrowed. */ private final ArrayList<PooledSoftReference<T>> allReferences =
