You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/06/10 17:54:47 UTC
(commons-pool) 03/05: Use final
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 a745f6b9ef4d7261642c56bef84567ed8688f2af
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jun 10 13:16:59 2025 -0400
Use final
---
.../org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java b/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
index 648226f2..91e3f97c 100644
--- a/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
+++ b/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
@@ -318,7 +318,7 @@ public class TestGenericKeyedObjectPool extends AbstractTestKeyedObjectPool {
public void run() {
try {
pool.returnObject(key, pool.borrowObject(key));
- } catch (Exception e) {
+ } catch (final Exception e) {
// Ignore
}
}
@@ -2120,7 +2120,7 @@ public class TestGenericKeyedObjectPool extends AbstractTestKeyedObjectPool {
// Then we will wait on the pool.
try {
pool.borrowObject("a");
- } catch (NoSuchElementException ex) {
+ } catch (final NoSuchElementException ex) {
// expected
}
// Should have timed out after 1000 ms from the start time