commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1457869 - /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/CollectionUtilsTest.java
Date Mon, 18 Mar 2013 17:11:09 GMT
Author: ggregory
Date: Mon Mar 18 17:11:08 2013
New Revision: 1457869

URL: http://svn.apache.org/r1457869
Log:
Always use a block.

Modified:
    commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/CollectionUtilsTest.java

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/CollectionUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/CollectionUtilsTest.java?rev=1457869&r1=1457868&r2=1457869&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/CollectionUtilsTest.java
(original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/CollectionUtilsTest.java
Mon Mar 18 17:11:08 2013
@@ -515,8 +515,11 @@ public class CollectionUtilsTest extends
         // odd / even equator
         final Equator<Integer> e = new Equator<Integer>() {
             public boolean equate(Integer o1, Integer o2) {
-                if (o1.intValue() % 2 == 0 ^ o2.intValue() % 2 == 0) return false;
-                else return true;
+                if (o1.intValue() % 2 == 0 ^ o2.intValue() % 2 == 0) {
+                    return false;
+                } else {
+                    return true;
+                }
             }
 
             public int hash(Integer o) {



Mime
View raw message