Correct invalid comparison

Found via error-prone.
This commit is contained in:
Andrew Gaul 2017-03-17 16:36:15 -07:00
parent cff54601ea
commit 7767acbec9
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public class Flavor implements Comparable<Flavor>{
return 1;
if (this == that)
return 0;
return this.getId() > that.getId() ? +1 : this.getId() < this.getId() ? -1 : 0;
return this.getId() > that.getId() ? +1 : this.getId() < that.getId() ? -1 : 0;
}
public static Builder builder() {