Commit 29839ab6 by olly Committed by Oliver Woodman

Fix min api check in RobolectricUtil

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188716201
parent f44a96f1
...@@ -185,9 +185,9 @@ public final class RobolectricUtil { ...@@ -185,9 +185,9 @@ public final class RobolectricUtil {
@Override @Override
public int compareTo(@NonNull PendingMessage other) { public int compareTo(@NonNull PendingMessage other) {
int res = Long.compare(this.when, other.when); int res = Util.compareLong(this.when, other.when);
if (res == 0 && this != other) { if (res == 0 && this != other) {
res = Long.compare(this.sequenceNumber, other.sequenceNumber); res = Util.compareLong(this.sequenceNumber, other.sequenceNumber);
} }
return res; return res;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment