commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1188812 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTOr.java
Date Tue, 25 Oct 2011 17:21:56 GMT
Author: mcucchiara
Date: Tue Oct 25 17:21:56 2011
New Revision: 1188812

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

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

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTOr.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTOr.java?rev=1188812&r1=1188811&r2=1188812&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTOr.java (original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ASTOr.java Tue Oct 25
17:21:56 2011
@@ -115,8 +115,8 @@ public class ASTOr
             Class secondType = context.getCurrentType();
 
             boolean mismatched =
-                ( firstType.isPrimitive() && !secondType.isPrimitive() )
-                    || ( !firstType.isPrimitive() && secondType.isPrimitive() ) ?
true : false;
+                ( firstType.isPrimitive( ) && !secondType.isPrimitive( ) ) || ( !firstType.isPrimitive(
)
+                    && secondType.isPrimitive( ) );
 
             result += "org.apache.commons.ognl.OgnlOps.booleanValue(" + first + ")";
 



Mime
View raw message