From: Peter Bernard West Date: Thu, 26 Sep 2002 14:33:17 +0000 (+0000) Subject: Fixed method argument type to int.class. X-Git-Tag: Alt-Design_pre_Properties_split~80 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c550b36866b04143f3586e743492ef42b30eb578;p=xmlgraphics-fop.git Fixed method argument type to int.class. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195247 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/fo/PropertyConsts.java b/src/org/apache/fop/fo/PropertyConsts.java index 0728feefa..f0dd64e67 100644 --- a/src/org/apache/fop/fo/PropertyConsts.java +++ b/src/org/apache/fop/fo/PropertyConsts.java @@ -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(