pbwest 2004/01/04 18:53:04 Modified: src/java/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FObjects.java Log: Removed redundant casts. Flagged by Eclipse. Revision Changes Path No revision No revision 1.1.2.3 +5 -5 xml-fop/src/java/org/apache/fop/fo/Attic/FObjects.java Index: FObjects.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/Attic/FObjects.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- FObjects.java 1 Jan 2004 23:19:49 -0000 1.1.2.2 +++ FObjects.java 5 Jan 2004 02:53:04 -0000 1.1.2.3 @@ -187,7 +187,7 @@ // Set up the foToIndex Hashmap with the name of the // flow object as a key, and the integer index as a value - if (foToIndex.put((Object) foName, + if (foToIndex.put(foName, Ints.consts.get(i)) != null) { throw new RuntimeException( "Duplicate values in propertyToIndex for key " + @@ -197,7 +197,7 @@ // Set up the foClassToIndex Hashmap with the name of the // fo class as a key, and the integer index as a value - if (foClassToIndex.put((Object) foClassNames[i], + if (foClassToIndex.put(foClassNames[i], Ints.consts.get(i)) != null) { throw new RuntimeException( "Duplicate values in foClassToIndex for key " +
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]