提交 3005532a 编写于 作者: O Oliver Gondža

Avoid Long#compare for now

上级 260b0947
......@@ -31,7 +31,9 @@ public abstract class QueueSorter implements ExtensionPoint {
public static final Comparator<Queue.BlockedItem> DEFAULT_BLOCKED_ITEM_COMPARATOR = new Comparator<Queue.BlockedItem>() {
@Override
public int compare(Queue.BlockedItem o1, Queue.BlockedItem o2) {
return Long.compare(o1.getInQueueSince(), o2.getInQueueSince());
long x = o1.getInQueueSince();
long y = o2.getInQueueSince();
return (x < y) ? -1 : ((x == y) ? 0 : 1);
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册