commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r753653 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java
Date Sat, 14 Mar 2009 13:32:29 GMT
Author: sebb
Date: Sat Mar 14 13:32:29 2009
New Revision: 753653

URL: http://svn.apache.org/viewvc?rev=753653&view=rev
Log:
Casts not really needed, but keep for consistency so suppress warnings

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java?rev=753653&r1=753652&r2=753653&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java
Sat Mar 14 13:32:29 2009
@@ -663,6 +663,7 @@
         assertEquals(baseStr + "[a=3,b=4]", new ToStringBuilder(base).append("a", (byte)
3).append("b", (byte) 4).toString());
     }
 
+    @SuppressWarnings("cast")
     public void testDouble() {
         assertEquals(baseStr + "[3.2]", new ToStringBuilder(base).append((double) 3.2).toString());
         assertEquals(baseStr + "[a=3.2]", new ToStringBuilder(base).append("a", (double)
3.2).toString());



Mime
View raw message