This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-pool.git

commit 451f63a50ffcb7a9c830a727765c4e7868836ccb
Author: Gary Gregory <[email protected]>
AuthorDate: Sun May 22 11:47:25 2022 -0400

    Generics
---
 .../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 dbfeca3f..d8f10609 100644
--- 
a/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
+++ 
b/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
@@ -2124,7 +2124,7 @@ public class TestGenericKeyedObjectPool extends 
TestKeyedObjectPool {
         // Create enough threads so half the threads will have to wait
         final WaitingTestThread<Exception>[] wtt = new 
WaitingTestThread[keyCount * threadsPerKey * 2];
         for (int i = 0; i < wtt.length; i++) {
-            wtt[i] = new WaitingTestThread(gkoPool, Integer.toString(i % 
keyCount), holdTime);
+            wtt[i] = new WaitingTestThread<>(gkoPool, Integer.toString(i % 
keyCount), holdTime);
         }
         final long originMillis = System.currentTimeMillis() - 1000;
         for (final WaitingTestThread<Exception> element : wtt) {

Reply via email to