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 69444bc782e9729b4595622ac0f95c03394c7876
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Nov 21 20:52:17 2025 +0000

    Remove unnecessary type cast
---
 .../java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 353276bf..0c237687 100644
--- 
a/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
+++ 
b/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
@@ -772,7 +772,7 @@ public class TestGenericKeyedObjectPool extends 
AbstractTestKeyedObjectPool {
         final GenericKeyedObjectPool<Object, Object> perKeyPool = new 
GenericKeyedObjectPool<>(perKeyFactory);
         perKeyPool.setMaxTotalPerKey(minCapacity);
         perKeyPool.setMaxIdlePerKey(minCapacity);
-        return (KeyedObjectPool<Object, Object>) perKeyPool;
+        return perKeyPool;
     }
 
     @Override

Reply via email to