We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ec1cd commit f7334d3Copy full SHA for f7334d3
1 file changed
core/src/main/java/fj/Ord.java
@@ -630,8 +630,7 @@ public static <A extends Comparable<A>> Ord<A> comparableOrd() {
630
public F<A, Ordering> f(final A a1) {
631
return new F<A, Ordering>() {
632
public Ordering f(final A a2) {
633
- final int x = a1.compareTo(a2);
634
- return x < 0 ? Ordering.LT : x == 0 ? Ordering.EQ : Ordering.GT;
+ return Ordering.fromInt(a1.compareTo(a2));
635
}
636
};
637
0 commit comments