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
The following commit(s) were added to refs/heads/POOL_2_X by this push:
new 52a67a15 Remove needless try-catch (after removing casted rethrow).
52a67a15 is described below
commit 52a67a1556589836f9efec5400bf182b89d88bd0
Author: psteitz <[email protected]>
AuthorDate: Fri Jul 21 16:25:05 2023 -0700
Remove needless try-catch (after removing casted rethrow).
---
.../java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git
a/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
b/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
index 402368d8..a544ee5b 100644
--- a/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
+++ b/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java
@@ -776,11 +776,7 @@ public class GenericKeyedObjectPool<K, 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 {
- objectDeque.makeObjectCountLock.wait();
- } catch (final InterruptedException e) {
- throw e;
- }
+ objectDeque.makeObjectCountLock.wait();
}
} else {
// The pool is not at capacity. Create a new object.