mirror of
https://github.com/apache/jclouds.git
synced 2026-09-01 00:44:28 +00:00
Fix a few Coverity defects
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user