JBIterator: remove() cannot be supported and delegated

This commit is contained in:
Gregory.Shrago
2016-04-27 02:40:21 +03:00
parent de6bcdfd51
commit 563b5b1e59
2 changed files with 1 additions and 11 deletions
@@ -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();
}