Skip to content

Commit 276a104

Browse files
committed
Update Commons Pool to 2.13.1
1 parent 1db490a commit 276a104

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

MERGE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Unused classes removed
5858
Sub-tree
5959
src/main/java/org/apache/commons/pool2
6060
The SHA1 ID / tag for the most recent commit to be merged to Tomcat is:
61-
rel/commons-pool-2.13.0 (2025-12-09)
61+
rel/commons-pool-2.13.1 (2025-12-30)
6262

6363
DBCP2
6464
No unused code removed

java/org/apache/tomcat/dbcp/pool2/KeyedPooledObjectFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
* While clients of a {@link KeyedObjectPool} borrow and return instances of
6363
* the underlying value type V, the factory methods act on instances of
6464
* {@link PooledObject PooledObject<V>}. These are the object wrappers that
65-
* pools use to track and maintain state informations about the objects that
65+
* pools use to track and maintain state information about the objects that
6666
* they manage.
6767
* </p>
6868
*

java/org/apache/tomcat/dbcp/pool2/impl/DefaultEvictionPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* {@link GenericKeyedObjectPoolConfig#getMinIdlePerKey()} idle objects in
3232
* the pool and the object has been idle for longer than
3333
* {@link GenericObjectPool#getSoftMinEvictableIdleDuration()} /
34-
* {@link GenericKeyedObjectPool#getSoftMinEvictableIdleDuration()}
34+
* {@link GenericKeyedObjectPool#getSoftMinEvictableIdleDuration()}</li>
3535
* </ul>
3636
* <p>
3737
* This class is immutable and thread-safe.

java/org/apache/tomcat/dbcp/pool2/impl/EvictionTimer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* <p>
3232
* This class is currently implemented using {@link ScheduledThreadPoolExecutor}. This implementation may change in any
3333
* future release. This class keeps track of how many pools are using it. If no pools are using the timer, it is
34-
* cancelled. This prevents a thread being left running which, in application server environments, can lead to memory
34+
* canceled. This prevents a thread being left running which, in application server environments, can lead to memory
3535
* leads and/or prevent applications from shutting down or reloading cleanly.
3636
* </p>
3737
* <p>
@@ -133,7 +133,7 @@ public void run() {
133133
/**
134134
* Removes the specified eviction task from the timer.
135135
*
136-
* @param evictor Task to be cancelled.
136+
* @param evictor Task to be canceled.
137137
* @param timeout If the associated executor is no longer required, how
138138
* long should this thread wait for the executor to
139139
* terminate?

java/org/apache/tomcat/dbcp/pool2/impl/GenericKeyedObjectPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ public void close() {
789789
jmxUnregister();
790790

791791
// Release any threads that were waiting for an object
792-
poolMap.values().forEach(e -> e.getIdleObjects().interuptTakeWaiters());
792+
poolMap.values().forEach(e -> e.getIdleObjects().interruptTakeWaiters());
793793
// This clear cleans up the keys now any waiting threads have been
794794
// interrupted
795795
clear();

java/org/apache/tomcat/dbcp/pool2/impl/GenericObjectPool.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ public void addObject() throws Exception {
212212
if (factory == null) {
213213
throw new IllegalStateException("Cannot add objects without a factory.");
214214
}
215-
216-
final int localMaxTotal = getMaxTotal();
217215
final int localMaxIdle = getMaxIdle();
218-
if (getNumIdle() < localMaxIdle && (localMaxTotal < 0 || createCount.get() < localMaxTotal)) {
216+
final int localMaxTotal = getMaxTotal();
217+
if ((localMaxIdle < 0 || getNumIdle() < localMaxIdle) &&
218+
(localMaxTotal < 0 || createCount.get() < localMaxTotal)) {
219219
addIdleObject(create(getMaxWaitDuration()));
220220
}
221221
}
@@ -479,7 +479,7 @@ public void close() {
479479
jmxUnregister();
480480

481481
// Release any threads that were waiting for an object
482-
idleObjects.interuptTakeWaiters();
482+
idleObjects.interruptTakeWaiters();
483483
}
484484
}
485485

java/org/apache/tomcat/dbcp/pool2/impl/LinkedBlockingDeque.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ boolean hasTakeWaiters() {
585585
* Interrupts the threads currently waiting to take an object from the pool. See disclaimer on accuracy in
586586
* {@link java.util.concurrent.locks.ReentrantLock#getWaitingThreads(Condition)}.
587587
*/
588-
void interuptTakeWaiters() {
588+
void interruptTakeWaiters() {
589589
lock.lock();
590590
try {
591591
lock.interruptWaiters(notEmpty);

webapps/docs/changelog.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
</update>
317317
<!-- Entries for backport and removal before 12.0.0-M1 below this line -->
318318
<update>
319-
Update the internal fork of Commons Pool to 2.13.0. (markt)
319+
Update the internal fork of Commons Pool to 2.13.1. (markt)
320320
</update>
321321
<update>
322322
Update the internal fork of Commons DBCP to 2.14.0. (markt)

0 commit comments

Comments
 (0)