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:12:07 UTC

[commons-beanutils] branch master updated: Use caches.

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


The following commit(s) were added to refs/heads/master by this push:
     new 27b3fc6  Use caches.
27b3fc6 is described below

commit 27b3fc65bed05d82cedb632af1e5e4429f715256
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 31 12:12:02 2020 -0500

    Use caches.
---
 .../beanutils2/locale/LocaleConvertUtilsTestCase.java      | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/test/java/org/apache/commons/beanutils2/locale/LocaleConvertUtilsTestCase.java b/src/test/java/org/apache/commons/beanutils2/locale/LocaleConvertUtilsTestCase.java
index 63edc30..5e984bf 100644
--- a/src/test/java/org/apache/commons/beanutils2/locale/LocaleConvertUtilsTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/locale/LocaleConvertUtilsTestCase.java
@@ -277,19 +277,19 @@ public class LocaleConvertUtilsTestCase extends TestCase {
         assertEquals("Boolean->String", "true",
                 LocaleConvertUtils.convert(Boolean.TRUE));
         assertEquals("Byte->String", "123",
-                LocaleConvertUtils.convert(new Byte((byte) 123)));
+                LocaleConvertUtils.convert(Byte.valueOf((byte) 123)));
         assertEquals("Character->String", "a",
-                LocaleConvertUtils.convert(new Character('a')));
+                LocaleConvertUtils.convert(Character.valueOf('a')));
         assertEquals("Double->String", "123" + m_decimalSeparator + "4",
-                LocaleConvertUtils.convert(new Double(123.4)));
+                LocaleConvertUtils.convert(Double.valueOf(123.4)));
         assertEquals("Float->String", "123" + m_decimalSeparator + "4",
-                LocaleConvertUtils.convert(new Float((float) 123.4)));
+                LocaleConvertUtils.convert(Float.valueOf((float) 123.4)));
         assertEquals("Integer->String", "123",
-                LocaleConvertUtils.convert(new Integer(123)));
+                LocaleConvertUtils.convert(Integer.valueOf(123)));
         assertEquals("Long->String", "123",
-                LocaleConvertUtils.convert(new Long(123)));
+                LocaleConvertUtils.convert(Long.valueOf(123)));
         assertEquals("Short->String", "123",
-                LocaleConvertUtils.convert(new Short((short) 123)));
+                LocaleConvertUtils.convert(Short.valueOf((short) 123)));
         assertEquals("String->String", "abc",
                 LocaleConvertUtils.convert("abc"));
         assertEquals("String->String null", null,