Unnecessary cast from char to int

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@430166 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2006-08-09 22:16:21 +00:00
parent 2ef7b77769
commit 06ebaca91c
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class RandomStringUtilsTest extends junit.framework.TestCase {
r1 = RandomStringUtils.randomAscii(50);
assertEquals("randomAscii(50) length", 50, r1.length());
for(int i = 0; i < r1.length(); i++) {
assertTrue("char between 32 and 127", (int) r1.charAt(i) >= 32 && (int) r1.charAt(i) <= 127);
assertTrue("char between 32 and 127", r1.charAt(i) >= 32 && r1.charAt(i) <= 127);
}
r2 = RandomStringUtils.randomAscii(50);
assertTrue("!r1.equals(r2)", !r1.equals(r2));