mirror of
https://github.com/corda/corda.git
synced 2025-01-31 16:35:43 +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) {
|
public static void sort(List list) {
|
||||||
sort(list, new Comparator() {
|
sort(list, new Comparator() {
|
||||||
public int compare(Object a, Object b) {
|
public int compare(Object a, Object b) {
|
||||||
if (a instanceof Comparable) {
|
|
||||||
return ((Comparable) a).compareTo(b);
|
return ((Comparable) a).compareTo(b);
|
||||||
} else {
|
|
||||||
return a.hashCode() - b.hashCode();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user