Fix a few Coverity defects

This commit is contained in:
Andrew Gaul
2017-11-05 16:42:31 -08:00
parent 83d10e8194
commit 46759f8bda
7 changed files with 22 additions and 8 deletions
@@ -281,7 +281,7 @@ public class Capacity implements Comparable<Capacity> {
public int compareTo(Capacity other) {
int comparison = this.zoneId.compareTo(other.zoneId);
if (comparison == 0) comparison = this.podId.compareTo(other.podId);
if (comparison == 0) Integer.valueOf(this.type.code).compareTo(other.type.code);
if (comparison == 0) comparison = Integer.valueOf(this.type.code).compareTo(other.type.code);
return comparison;
}
}