commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r430168 - /jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringEscapeUtilsTest.java
Date Wed, 09 Aug 2006 22:21:41 GMT
Author: ggregory
Date: Wed Aug  9 15:21:38 2006
New Revision: 430168

URL: http://svn.apache.org/viewvc?rev=430168&view=rev
Log:
Unnecessary cast from char to int

Modified:
    jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringEscapeUtilsTest.java

Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringEscapeUtilsTest.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringEscapeUtilsTest.java?rev=430168&r1=430167&r2=430168&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringEscapeUtilsTest.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringEscapeUtilsTest.java
Wed Aug  9 15:21:38 2006
@@ -256,8 +256,8 @@
             Character c1 = new Character(i);
             Character c2 = new Character((char)(i+1));
             String expected = c1.toString() + c2.toString();
-            String escapedC1 = "&#x" + Integer.toHexString((int)(c1.charValue())) + ";";
-            String escapedC2 = "&#x" + Integer.toHexString((int)(c2.charValue())) + ";";
+            String escapedC1 = "&#x" + Integer.toHexString((c1.charValue())) + ";";
+            String escapedC2 = "&#x" + Integer.toHexString((c2.charValue())) + ";";
             assertEquals("hex number unescape index " + (int)i, expected, StringEscapeUtils.unescapeHtml(escapedC1
+ escapedC2));
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message