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 2020/11/21 18:59:36 UTC

[commons-pool] branch master updated: Better number-string conversion.

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


The following commit(s) were added to refs/heads/master by this push:
     new 1ba144b  Better number-string conversion.
1ba144b is described below

commit 1ba144bcf7fa53f3224a638236a1ee6eaa91dfc3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 21 13:59:32 2020 -0500

    Better number-string conversion.
---
 .../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 8e01289..f1f70fd 100644
--- a/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
+++ b/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
@@ -1403,7 +1403,7 @@ public class TestGenericKeyedObjectPool extends TestKeyedObjectPool {
             waiterPool.setLifo(false);
             // Load the pool with idle instances - 5 each for 10 keys
             for (int i = 0; i < 10; i++) {
-                final String key = Integer.valueOf(i).toString();
+                final String key = Integer.toString(i);
                 for (int j = 0; j < 5; j++) {
                     waiterPool.addObject(key);
                 }