commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1188813 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTTest.java
Date Tue, 25 Oct 2011 17:22:35 GMT
Author: mcucchiara
Date: Tue Oct 25 17:22:34 2011
New Revision: 1188813

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

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

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTTest.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTTest.java?rev=1188813&r1=1188812&r2=1188813&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTTest.java (original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTTest.java Tue Oct 25
17:22:34 2011
@@ -117,8 +117,8 @@ class ASTTest
             }
 
             boolean mismatched =
-                ( secondType.isPrimitive() && !thirdType.isPrimitive() )
-                    || ( !secondType.isPrimitive() && thirdType.isPrimitive() ) ?
true : false;
+                ( secondType.isPrimitive( ) && !thirdType.isPrimitive( ) ) || ( !secondType.isPrimitive(
)
+                    && thirdType.isPrimitive( ) );
 
             result += "org.apache.commons.ognl.OgnlOps.booleanValue(" + first + ")";
 



Mime
View raw message