Author: mcucchiara
Date: Tue May 17 22:11:01 2011
New Revision: 1104596
URL: http://svn.apache.org/viewvc?rev=1104596&view=rev
Log:
Removed unnecessary "or" condition
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=1104596&r1=1104595&r2=1104596&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
Tue May 17 22:11:01 2011
@@ -2737,9 +2737,9 @@ public class OgnlRuntime
String methodName = method.getName();
String lowerMethodName = methodName.toLowerCase();
- if ( ( methodName.equalsIgnoreCase( name ) ||
lowerMethodName.equals( name )
- || lowerMethodName.equals( "get" + name ) ||
lowerMethodName.equals( "has" + name )
- || lowerMethodName.equals( "is" + name ) ) &&
!methodName.startsWith( "set" ) )
+ if ( ( methodName.equalsIgnoreCase( name ) ||
lowerMethodName.equals( "get" + name )
+ || lowerMethodName.equals( "has" + name ) ||
lowerMethodName.equals( "is" + name ) )
+ && !methodName.startsWith( "set" ) )
{
if ( numParms > 0 &&
method.getMethod().getParameterTypes().length == numParms )
{