commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1189278 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTChain.java
Date Wed, 26 Oct 2011 15:52:58 GMT
Author: mcucchiara
Date: Wed Oct 26 15:52:58 2011
New Revision: 1189278

URL: http://svn.apache.org/viewvc?rev=1189278&view=rev
Log:
Small  simplification

Modified:
    commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTChain.java

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTChain.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTChain.java?rev=1189278&r1=1189277&r2=1189278&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTChain.java (original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTChain.java Wed Oct
26 15:52:58 2011
@@ -254,14 +254,8 @@ public class ASTChain
             result = true;
             for ( int i = 0; result && ( i < _children.length ); i++ )
             {
-                if ( _children[i] instanceof SimpleNode )
-                {
-                    result = ( (SimpleNode) _children[i] ).isSimpleProperty( context );
-                }
-                else
-                {
-                    result = false;
-                }
+                result =
+                    _children[i] instanceof SimpleNode && ( (SimpleNode) _children[i]
).isSimpleProperty( context );
             }
         }
         return result;



Mime
View raw message