Commit 13ce22ab authored by lepdou's avatar lepdou

update

parent e2f3bcd2
...@@ -46,16 +46,14 @@ public class Cluster extends BaseEntity implements Comparable<Cluster> { ...@@ -46,16 +46,14 @@ public class Cluster extends BaseEntity implements Comparable<Cluster> {
@Override @Override
public int compareTo(Cluster o) { public int compareTo(Cluster o) {
if (o == null) { if (o == null || getId() > o.getId()) {
return 1; return 1;
} }
if (getId() > o.getId()) {
return 1;
}
if (getId() == o.getId()) { if (getId() == o.getId()) {
return 0; return 0;
} }
return -1; return -1;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment