Always use a block.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1457869 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2013-03-18 17:11:08 +00:00
parent b5f66526a4
commit 18ba121c56
1 changed files with 5 additions and 2 deletions

View File

@ -515,8 +515,11 @@ public class CollectionUtilsTest extends MockTestCase {
// 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) {