commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1199726 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ValidateTest.java
Date Wed, 09 Nov 2011 12:59:24 GMT
Author: sebb
Date: Wed Nov  9 12:59:24 2011
New Revision: 1199726

URL: http://svn.apache.org/viewvc?rev=1199726&view=rev
Log:
Unnecessary Integer creation; actually wants long

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ValidateTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ValidateTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ValidateTest.java?rev=1199726&r1=1199725&r2=1199726&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ValidateTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ValidateTest.java Wed
Nov  9 12:59:24 2011
@@ -65,9 +65,9 @@ public class ValidateTest extends TestCa
 
     //-----------------------------------------------------------------------
     public void testIsTrue3() {
-        Validate.isTrue(true, "MSG", Integer.valueOf(6));
+        Validate.isTrue(true, "MSG", 6);
         try {
-            Validate.isTrue(false, "MSG", Integer.valueOf(6));
+            Validate.isTrue(false, "MSG", 6);
             fail("Expecting IllegalArgumentException");
         } catch (IllegalArgumentException ex) {
             assertEquals("MSG", ex.getMessage());



Mime
View raw message