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


The following commit(s) were added to refs/heads/POOL_2_X by this push:
     new 1564c20a [POOL-423] Add TODO: The references to _maxActive are from 
1.x and need to be updated.
1564c20a is described below

commit 1564c20a8082a082c0e28f44229cb68f8c00b2d5
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Jun 6 08:38:18 2025 -0400

    [POOL-423] Add TODO: The references to _maxActive are from 1.x and need
    to be updated.
---
 src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java 
b/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
index 09187714..c3da188f 100644
--- a/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
+++ b/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
@@ -93,6 +93,8 @@ public class GenericObjectPool<T> extends 
BaseGenericObjectPool<T>
     private final PooledObjectFactory<T> factory;
 
     /*
+     * TODO The references to _maxActive are from 1.x and need to be updated.
+     *
      * All of the objects currently associated with this pool in any state. It
      * excludes objects that have been destroyed. The size of
      * {@link #allObjects} will always be less than or equal to {@link
@@ -102,6 +104,8 @@ public class GenericObjectPool<T> extends 
BaseGenericObjectPool<T>
     private final ConcurrentHashMap<IdentityWrapper<T>, PooledObject<T>> 
allObjects = new ConcurrentHashMap<>();
 
     /*
+     * TODO The references to _maxActive are from 1.x and need to be updated.
+     *
      * The combined count of the currently created objects and those in the
      * process of being created. Under load, it may exceed {@link #_maxActive}
      * if multiple threads try and create a new object at the same time but

Reply via email to