mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
clear sorting tag if collection is modified
This commit is contained in:
@@ -37,11 +37,13 @@ public class SortedList<T> extends AbstractList<T>{
|
||||
|
||||
@Override
|
||||
public T remove(final int index) {
|
||||
mySorted = false;
|
||||
return myDelegate.remove(index);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean remove(Object o) {
|
||||
mySorted = false;
|
||||
ensureSorted();
|
||||
final int i = Collections.binarySearch(myDelegate, (T)o, myComparator);
|
||||
if (i >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user