You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mc...@apache.org on 2011/10/25 19:09:32 UTC

svn commit: r1188799 - /commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/StaticsAndConstructorsTest.java

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;
         }
     }