This is an automated email from the ASF dual-hosted git repository. psteitz pushed a commit to branch POOL_2_X in repository https://gitbox.apache.org/repos/asf/commons-pool.git
commit 721dd8c31bb57c112bf04fa136a9489d8870d20e Author: psteitz <phil.ste...@gmail.com> AuthorDate: Sun Jul 30 12:55:22 2023 -0700 Remove needless try/catch (after removing exception cast). --- src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 15ab1586..cff98204 100644 --- a/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java +++ b/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java @@ -541,12 +541,7 @@ public class GenericObjectPool<T> extends BaseGenericObjectPool<T> // bring the pool to capacity. Those calls might also // fail so wait until they complete and then re-test if // the pool is at capacity or not. - try { - wait(makeObjectCountLock, localMaxWaitDuration); - } catch (final InterruptedException e) { - // Don't surface exception type of internal locking mechanism. - throw e; - } + wait(makeObjectCountLock, localMaxWaitDuration); } } else { // The pool is not at capacity. Create a new object.