Merge pull request #543 from CruzBishop/uniquename-opt
Optimize UniqueName.compareTo(other) slightly
This commit is contained in:
commit
2a06d68fae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user