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/05/23 00:41:56 UTC

svn commit: r1126261 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java

Author: simonetripodi
Date: Sun May 22 22:41:55 2011
New Revision: 1126261

URL: http://svn.apache.org/viewvc?rev=1126261&view=rev
Log:
removed redundant null check

Modified:
    incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java?rev=1126261&r1=1126260&r2=1126261&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java Sun May 22 22:41:55 2011
@@ -2764,7 +2764,7 @@ public class OgnlRuntime
                         {
                             return method.getMethod();
                         }
-                        else if ( m == null || ( m != null && m.getParameterTypes().length > methodParamLen ) )
+                        else if ( m == null || ( m.getParameterTypes().length > methodParamLen ) )
                         {
                             m = method.getMethod();
                         }