Skip to content

Commit

Permalink
Fix min api check in RobolectricUtil
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188716201
  • Loading branch information
ojw28 committed Mar 13, 2018
1 parent f44a96f commit 29839ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ public PendingMessage(@Nullable Message message, long when) {

@Override
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) {
res = Long.compare(this.sequenceNumber, other.sequenceNumber);
res = Util.compareLong(this.sequenceNumber, other.sequenceNumber);
}
return res;
}
Expand Down

0 comments on commit 29839ab

Please sign in to comment.