You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/02/19 18:21:08 UTC
svn commit: r1072401 -
/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/metaparser/CallMethodRule.java
Author: simonetripodi
Date: Sat Feb 19 17:21:08 2011
New Revision: 1072401
URL: http://svn.apache.org/viewvc?rev=1072401&view=rev
Log:
modified XML CallMethod builder according to RulesBinder builder
Modified:
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/metaparser/CallMethodRule.java
Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/metaparser/CallMethodRule.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/metaparser/CallMethodRule.java?rev=1072401&r1=1072400&r2=1072401&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/metaparser/CallMethodRule.java (original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/metaparser/CallMethodRule.java Sat Feb 19 17:21:08 2011
@@ -49,11 +49,6 @@ final class CallMethodRule extends Abstr
builder.withTargetOffset(targetOffset);
}
- if ("true".equalsIgnoreCase(attributes.getValue("usingElementBodyAsArgument"))) {
- builder.usingElementBodyAsArgument();
- return; // this takes advantage
- }
-
builder.useExactMatch("true".equalsIgnoreCase(attributes.getValue("useExactMatch")));
String paramCountStr = attributes.getValue("paramcount");
@@ -73,6 +68,10 @@ final class CallMethodRule extends Abstr
}
builder.withParamTypes(paramTypeNames);
}
+
+ if ("true".equalsIgnoreCase(attributes.getValue("usingElementBodyAsArgument"))) {
+ builder.usingElementBodyAsArgument();
+ }
}
}