]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Removed redundant casts.
authorPeter Bernard West <pbwest@apache.org>
Mon, 5 Jan 2004 02:53:04 +0000 (02:53 +0000)
committerPeter Bernard West <pbwest@apache.org>
Mon, 5 Jan 2004 02:53:04 +0000 (02:53 +0000)
Flagged by Eclipse.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197135 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FOAttributes.java
src/java/org/apache/fop/fo/FObjects.java

index fb234899203546916e1ce14a6877df4abfd76fc9..3e6c74ebe0c5547d0d587fec182c75c9de3afc63 100644 (file)
@@ -210,7 +210,7 @@ public class FOAttributes {
      * <tt>PropNames</tt>.
      */
     public Map getFixedFoAttrMap() {
-        return Collections.unmodifiableMap((Map)foAttrMap);
+        return Collections.unmodifiableMap(foAttrMap);
     }
 
     /**
@@ -274,7 +274,7 @@ public class FOAttributes {
      */
     public Map getAttrMap(int uriIndex) {
         if (uriIndex == XMLNamespaces.DefAttrNSIndex)
-            return Collections.unmodifiableMap((Map)foAttrMap);
+            return Collections.unmodifiableMap(foAttrMap);
         if (nSpaceAttrMaps != null) {
             if (uriIndex >= nSpaceAttrMaps.size()) return null;
             return Collections.unmodifiableMap
index 2752d4fd9c6dcf8e846a72cf27f0e24954c54d25..5af3298e6928ebcbc46c91ce4d992da1988dd7dd 100644 (file)
@@ -187,7 +187,7 @@ public class FObjects {
 
             // 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 @@ public class FObjects {
             // 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 " +