Author: markt Date: Sat Apr 12 20:58:35 2014 New Revision: 1586900 URL: http://svn.apache.org/r1586900 Log: Return exact match as soon as it is found. Note without the change the same method is returned it just takes a little longer
Modified: tomcat/tc7.0.x/trunk/java/org/apache/el/util/ReflectionUtil.java Modified: tomcat/tc7.0.x/trunk/java/org/apache/el/util/ReflectionUtil.java URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/el/util/ReflectionUtil.java?rev=1586900&r1=1586899&r2=1586900&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/java/org/apache/el/util/ReflectionUtil.java (original) +++ tomcat/tc7.0.x/trunk/java/org/apache/el/util/ReflectionUtil.java Sat Apr 12 20:58:35 2014 @@ -205,7 +205,7 @@ public class ReflectionUtil { // If a method is found where every parameter matches exactly, // return it if (exactMatch == paramCount) { - getMethod(base.getClass(), m); + return getMethod(base.getClass(), m); } candidates.put(m, Integer.valueOf(exactMatch)); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org