From 9e100212ceae531cbe14ae9e20464a7b37887b6a Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Sat, 26 Jul 2003 00:31:29 +0000 Subject: [PATCH] Severity Description Resource In Folder Location Creation Time Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int EntitiesTest.java Apache Jakarta Commons/lang/src/test/org/apache/commons/lang line 130 July 23, 2003 11:22:39 AM git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137501 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/commons/lang/EntitiesTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/org/apache/commons/lang/EntitiesTest.java b/src/test/org/apache/commons/lang/EntitiesTest.java index d688e8109..4b04c6bee 100644 --- a/src/test/org/apache/commons/lang/EntitiesTest.java +++ b/src/test/org/apache/commons/lang/EntitiesTest.java @@ -63,7 +63,8 @@ import junit.textui.TestRunner; * * @author of original StringUtilsTest.testEscape = ? * @author Alexander Day Chaffee - * @version $Id: EntitiesTest.java,v 1.6 2003/06/29 03:04:33 alex Exp $ + * @author Gary Gregory + * @version $Id: EntitiesTest.java,v 1.7 2003/07/26 00:31:29 ggregory Exp $ */ public class EntitiesTest extends TestCase { @@ -127,7 +128,7 @@ public class EntitiesTest extends TestCase public void testEntitiesXmlObject() throws Exception { assertEquals("gt", Entities.XML.entityName('>')); - assertEquals((int) '>', Entities.XML.entityValue("gt")); + assertEquals('>', Entities.XML.entityValue("gt")); assertEquals(-1, Entities.XML.entityValue("xyzzy")); }