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/12/31 17:04:00 UTC

[commons-bsf] branch master updated: Use Character cache.

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-bsf.git


The following commit(s) were added to refs/heads/master by this push:
     new a66268f  Use Character cache.
a66268f is described below

commit a66268f8bdda3d1034b43aa4bca7213753e57709
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 31 12:03:56 2020 -0500

    Use Character cache.
---
 src/test/java/org/apache/bsf/util/StringUtilsTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/bsf/util/StringUtilsTest.java b/src/test/java/org/apache/bsf/util/StringUtilsTest.java
index 6c5bbc2..06bdb1d 100644
--- a/src/test/java/org/apache/bsf/util/StringUtilsTest.java
+++ b/src/test/java/org/apache/bsf/util/StringUtilsTest.java
@@ -153,8 +153,8 @@ public class StringUtilsTest extends TestCase {
         String result;
 
         final Vector vector = new Vector();
-        vector.add(new Character('a'));
-        vector.add(new Character('b'));
+        vector.add(Character.valueOf('a'));
+        vector.add(Character.valueOf('b'));
 
         result = StringUtils.getCommaListFromVector(vector);
         assertTrue(result.equals("a, b"));