mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
Undo my collections changes, as I was wrong here
This commit is contained in:
parent
32a1fb21f2
commit
ee0ad22415
@ -38,11 +38,7 @@ public class Collections {
|
||||
public static void sort(List list) {
|
||||
sort(list, new Comparator() {
|
||||
public int compare(Object a, Object b) {
|
||||
if (a instanceof Comparable) {
|
||||
return ((Comparable) a).compareTo(b);
|
||||
} else {
|
||||
return a.hashCode() - b.hashCode();
|
||||
}
|
||||
return ((Comparable) a).compareTo(b);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user