mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
fix class cast exception in TreeSet ctor
This commit is contained in:
parent
244393430d
commit
a677a2da17
@ -24,12 +24,11 @@ public class TreeSet<T> extends AbstractSet<T> implements Collection<T> {
|
||||
}
|
||||
|
||||
public TreeSet() {
|
||||
set = new PersistentSet(new Comparator<Cell<T>>() {
|
||||
public int compare(Cell<T> a, Cell<T> b) {
|
||||
return ((Comparable)a).compareTo(b);
|
||||
}
|
||||
this(new Comparator<T>() {
|
||||
public int compare(T a, T b) {
|
||||
return ((Comparable) a).compareTo(b);
|
||||
}
|
||||
});
|
||||
size = 0;
|
||||
}
|
||||
|
||||
public Iterator<T> iterator() {
|
||||
|
Loading…
Reference in New Issue
Block a user