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

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

commit 03474a66f108d84d41655b1a4fbb32cf903ac33c
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jul 24 08:39:42 2024 -0400

    Use a Number's valueOf() method
---
 .../beanutils/BeanToPropertyValueTransformerTestCase.java      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/beanutils/BeanToPropertyValueTransformerTestCase.java
 
b/src/test/java/org/apache/commons/beanutils/BeanToPropertyValueTransformerTestCase.java
index 4a1d7cf9..634df465 100644
--- 
a/src/test/java/org/apache/commons/beanutils/BeanToPropertyValueTransformerTestCase.java
+++ 
b/src/test/java/org/apache/commons/beanutils/BeanToPropertyValueTransformerTestCase.java
@@ -26,12 +26,12 @@ import junit.framework.TestCase;
  */
 public class BeanToPropertyValueTransformerTestCase extends TestCase {
 
-    private static final Integer expectedIntegerValue = new Integer(123);
-    private static final Long expectedLongValue = new Long(123);
-    private static final Float expectedFloatValue = new Float(123.123f);
-    private static final Double expectedDoubleValue = new 
Double(567879.12344d);
+    private static final Integer expectedIntegerValue = Integer.valueOf(123);
+    private static final Long expectedLongValue = Long.valueOf(123);
+    private static final Float expectedFloatValue = Float.valueOf(123.123f);
+    private static final Double expectedDoubleValue = 
Double.valueOf(567879.12344d);
     private static final Boolean expectedBooleanValue = Boolean.TRUE;
-    private static final Byte expectedByteValue = new Byte("12");
+    private static final Byte expectedByteValue = Byte.valueOf("12");
 
     /**
      * Constructor for BeanToPropertyValueTransformerTestCase.

Reply via email to