commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1188799 - /commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/StaticsAndConstructorsTest.java
Date Tue, 25 Oct 2011 17:09:32 GMT
Author: mcucchiara
Date: Tue Oct 25 17:09:32 2011
New Revision: 1188799

URL: http://svn.apache.org/viewvc?rev=1188799&view=rev
Log:
If statement can be simplified

Modified:
    commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/StaticsAndConstructorsTest.java

Modified: commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/StaticsAndConstructorsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/StaticsAndConstructorsTest.java?rev=1188799&r1=1188798&r2=1188799&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/StaticsAndConstructorsTest.java
(original)
+++ commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/StaticsAndConstructorsTest.java
Tue Oct 25 17:09:32 2011
@@ -140,10 +140,8 @@ public class StaticsAndConstructorsTest
 
             A a = (A) o;
 
-            if ( key != null ? !key.equals( a.key ) : a.key != null )
-                return false;
+            return !( key != null ? !key.equals( a.key ) : a.key != null );
 
-            return true;
         }
     }
 



Mime
View raw message