Skip to content

Commit 3c5bd85

Browse files
committed
Do not use method introduced to Java 7 Integer.compare
1 parent d4746a4 commit 3c5bd85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/fj/Ord.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ public static <A extends Comparable<A>> Ord<A> comparableOrd() {
487487
public static <A> Ord<A> hashOrd() {
488488
return ord(a -> {
489489
int aHash = a.hashCode();
490-
return a2 -> Ordering.fromInt(Integer.compare(aHash, a2.hashCode()));
490+
return a2 -> Ordering.fromInt(Integer.valueOf(aHash).compareTo(a2.hashCode()));
491491
});
492492
}
493493

0 commit comments

Comments
 (0)