Instead of something like
long x;
long y;
(x < y) ? -1 : ((x == y) ? 0 : 1)
we can use Long.compare(x, y)
long x;
long y;
(x < y) ? -1 : ((x == y) ? 0 : 1)
we can use Long.compare(x, y)
- relates to
-
JDK-8278937 JCK test for java_awt/geom/Line2D.Float fails after 8277868
- Resolved