Merge pull request #543 from CruzBishop/uniquename-opt

Optimize UniqueName.compareTo(other) slightly
This commit is contained in:
Norman Maurer 2012-08-20 21:50:28 -07:00
commit 2a06d68fae

View File

@ -103,13 +103,7 @@ public class UniqueName implements Comparable<UniqueName> {
return returnCode;
}
if (id < other.id) {
return -1;
} else if (id > other.id) {
return 1;
} else {
return 0;
}
return ((Integer) id).compareTo((Integer) other.id);
}
@Override