Author: dion Date: Mon Jun 27 01:05:19 2005 New Revision: 201957 URL: http://svn.apache.org/viewcvs?rev=201957&view=rev Log: Remove unnecessary casts
Modified: jakarta/commons/proper/jelly/trunk/src/test/org/apache/commons/jelly/core/TestArgTag.java Modified: jakarta/commons/proper/jelly/trunk/src/test/org/apache/commons/jelly/core/TestArgTag.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jelly/trunk/src/test/org/apache/commons/jelly/core/TestArgTag.java?rev=201957&r1=201956&r2=201957&view=diff ============================================================================== --- jakarta/commons/proper/jelly/trunk/src/test/org/apache/commons/jelly/core/TestArgTag.java (original) +++ jakarta/commons/proper/jelly/trunk/src/test/org/apache/commons/jelly/core/TestArgTag.java Mon Jun 27 01:05:19 2005 @@ -112,7 +112,7 @@ argTag.setValue("17"); argTag.doTag(getXMLOutput()); assertEquals(Integer.TYPE,parentTag.getType(0)); - assertEquals(new Integer((int)17),parentTag.getValue(0)); + assertEquals(new Integer(17),parentTag.getValue(0)); } public void testToIntFromNumber() throws Exception { @@ -120,7 +120,7 @@ argTag.setValue(new Double(17.3d)); argTag.doTag(getXMLOutput()); assertEquals(Integer.TYPE,parentTag.getType(0)); - assertEquals(new Integer((int)17),parentTag.getValue(0)); + assertEquals(new Integer(17),parentTag.getValue(0)); } public void testToFloatFromString() throws Exception { @@ -144,7 +144,7 @@ argTag.setValue("17"); argTag.doTag(getXMLOutput()); assertEquals(Long.TYPE,parentTag.getType(0)); - assertEquals(new Long((int)17),parentTag.getValue(0)); + assertEquals(new Long(17),parentTag.getValue(0)); } public void testToLongFromNumber() throws Exception { @@ -152,7 +152,7 @@ argTag.setValue(new Double(17.3d)); argTag.doTag(getXMLOutput()); assertEquals(Long.TYPE,parentTag.getType(0)); - assertEquals(new Long((long)17),parentTag.getValue(0)); + assertEquals(new Long(17),parentTag.getValue(0)); } public void testToDoubleFromString() throws Exception { @@ -160,7 +160,7 @@ argTag.setValue("17.3"); argTag.doTag(getXMLOutput()); assertEquals(Double.TYPE,parentTag.getType(0)); - assertEquals(new Double((double)17.3),parentTag.getValue(0)); + assertEquals(new Double(17.3),parentTag.getValue(0)); } public void testToDoubleFromNumber() throws Exception { @@ -168,7 +168,7 @@ argTag.setValue(new Long(17L)); argTag.doTag(getXMLOutput()); assertEquals(Double.TYPE,parentTag.getType(0)); - assertEquals(new Double((double)17),parentTag.getValue(0)); + assertEquals(new Double(17),parentTag.getValue(0)); } public void testToPrimitiveFromNull() throws Exception { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]