From 06ebaca91c69fbf4149bd09074d8961affa69ed2 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Wed, 9 Aug 2006 22:16:21 +0000 Subject: [PATCH] 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 --- src/test/org/apache/commons/lang/RandomStringUtilsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/org/apache/commons/lang/RandomStringUtilsTest.java b/src/test/org/apache/commons/lang/RandomStringUtilsTest.java index 84467703a..47d5e76be 100644 --- a/src/test/org/apache/commons/lang/RandomStringUtilsTest.java +++ b/src/test/org/apache/commons/lang/RandomStringUtilsTest.java @@ -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));