]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed method argument type to int.class.
authorPeter Bernard West <pbwest@apache.org>
Thu, 26 Sep 2002 14:33:17 +0000 (14:33 +0000)
committerPeter Bernard West <pbwest@apache.org>
Thu, 26 Sep 2002 14:33:17 +0000 (14:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195247 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/PropertyConsts.java

index 0728feefa1d1a6e7d05a436d3589a652bda67df3..f0dd64e6774e8e1956307415db9b333910ccdb09 100644 (file)
@@ -559,7 +559,7 @@ public class PropertyConsts {
         refineparsingmethods = new Method[PropNames.LAST_PROPERTY_INDEX + 1];
         mappednummethods     = new HashMap();
 
-        oneClass[0] = Integer.class;
+        oneClass[0] = int.class;
         twoClasses[0] = FONode.class;
         twoClasses[1] = PropertyValue.class;
 
@@ -630,9 +630,11 @@ public class PropertyConsts {
                 datatypes[i] = classes[i].getField("dataTypes").getInt(null);
                 refineparsingmethods[i] =
                             classes[i].getMethod("refineParsing", twoClasses);
-                if ((datatypes[i] & Properties.MAPPED_LENGTH) != 0)
+
+                if ((datatypes[i] & Properties.MAPPED_LENGTH) != 0) {
                     mappednummethods.put(Ints.consts.get(i),
                             classes[i].getMethod("getMappedLength", oneClass));
+                }
             }
             catch (NoSuchFieldException e) {
                 throw new RuntimeException(