No functional change - refactor QueryIterator to use Iterator.remove()

default method

Iterator.remove() has a default implementation that throws UnsupportedOperationException which is what we want. Remove the close() method from QueryIterator and implementations so that we just use the Iterator.remove() default implementation.
This commit is contained in:
rbygrave
2021-06-11 10:20:47 +12:00
parent 4ee784c68f
commit 55bc498f9d
4 changed files with 1 additions and 19 deletions
@@ -70,12 +70,6 @@ public interface QueryIterator<T> extends Iterator<T>, AutoCloseable {
@Override
T next();
/**
* Remove is not allowed.
*/
@Override
void remove();
/**
* Close the underlying resources held by this iterator.
*/