commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1072401 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/metaparser/CallMethodRule.java
Date Sat, 19 Feb 2011 17:21:08 GMT
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();
+        }
     }
 
 }



Mime
View raw message