mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JBIterator: remove() cannot be supported and delegated
This commit is contained in:
@@ -367,11 +367,6 @@ public abstract class JBIterable<E> implements Iterable<E> {
|
||||
cur = fun.fun(iterator.next()).iterator();
|
||||
return skip();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove() {
|
||||
cur.remove();
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
@@ -62,11 +62,6 @@ public abstract class JBIterator<E> implements Iterator<E> {
|
||||
protected E nextImpl() {
|
||||
return it.hasNext() ? it.next() : stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove() {
|
||||
it.remove();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -222,7 +217,7 @@ public abstract class JBIterator<E> implements Iterator<E> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove() {
|
||||
public final void remove() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user