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:
parent
b5f66526a4
commit
18ba121c56
|
@ -515,8 +515,11 @@ public class CollectionUtilsTest extends MockTestCase {
|
||||||
// odd / even equator
|
// odd / even equator
|
||||||
final Equator<Integer> e = new Equator<Integer>() {
|
final Equator<Integer> e = new Equator<Integer>() {
|
||||||
public boolean equate(Integer o1, Integer o2) {
|
public boolean equate(Integer o1, Integer o2) {
|
||||||
if (o1.intValue() % 2 == 0 ^ o2.intValue() % 2 == 0) return false;
|
if (o1.intValue() % 2 == 0 ^ o2.intValue() % 2 == 0) {
|
||||||
else return true;
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int hash(Integer o) {
|
public int hash(Integer o) {
|
||||||
|
|
Loading…
Reference in New Issue