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

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


The following commit(s) were added to refs/heads/master by this push:
     new e614670  Use Byte.valueOf rather than new Byte etc
e614670 is described below

commit e614670000b73b532c484fca75cb1028cac9ef30
Author: Sebb <s...@apache.org>
AuthorDate: Fri Jun 19 13:40:38 2020 +0100

    Use Byte.valueOf rather than new Byte etc
---
 src/test/java/org/apache/commons/validator/ByteTest.java   | 4 ++--
 src/test/java/org/apache/commons/validator/DoubleTest.java | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/validator/ByteTest.java 
b/src/test/java/org/apache/commons/validator/ByteTest.java
index 3d66aaa..63ac3ed 100644
--- a/src/test/java/org/apache/commons/validator/ByteTest.java
+++ b/src/test/java/org/apache/commons/validator/ByteTest.java
@@ -48,7 +48,7 @@ public class ByteTest extends AbstractNumberTest {
     public void testByteMin() throws ValidatorException {
         // Create bean to run test on.
         ValueBean info = new ValueBean();
-        info.setValue(new Byte(Byte.MIN_VALUE).toString());
+        info.setValue(Byte.valueOf(Byte.MIN_VALUE).toString());
 
         valueTest(info, true);
     }
@@ -59,7 +59,7 @@ public class ByteTest extends AbstractNumberTest {
     public void testByteMax() throws ValidatorException {
         // Create bean to run test on.
         ValueBean info = new ValueBean();
-        info.setValue(new Byte(Byte.MAX_VALUE).toString());
+        info.setValue(Byte.valueOf(Byte.MAX_VALUE).toString());
 
         valueTest(info, true);
     }
diff --git a/src/test/java/org/apache/commons/validator/DoubleTest.java 
b/src/test/java/org/apache/commons/validator/DoubleTest.java
index 3eeff2c..9e907ab 100644
--- a/src/test/java/org/apache/commons/validator/DoubleTest.java
+++ b/src/test/java/org/apache/commons/validator/DoubleTest.java
@@ -48,7 +48,7 @@ public class DoubleTest extends AbstractNumberTest {
     public void testDoubleMin() throws ValidatorException {
         // Create bean to run test on.
         ValueBean info = new ValueBean();
-        info.setValue(new Double(Double.MIN_VALUE).toString());
+        info.setValue(Double.valueOf(Double.MIN_VALUE).toString());
 
         valueTest(info, true);
     }
@@ -59,7 +59,7 @@ public class DoubleTest extends AbstractNumberTest {
     public void testDoubleMax() throws ValidatorException {
         // Create bean to run test on.
         ValueBean info = new ValueBean();
-        info.setValue(new Double(Double.MAX_VALUE).toString());
+        info.setValue(Double.valueOf(Double.MAX_VALUE).toString());
 
         valueTest(info, true);
     }

Reply via email to