Fix min api check in RobolectricUtil

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188716201
This commit is contained in:
olly 2018-03-12 06:56:35 -07:00 committed by Oliver Woodman
parent 9c10c2d2a6
commit 78e6979725

View file

@ -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;
} }