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 committed 2021-06-11 10:20:47 +12:00
1 parent 4ee784c68f
commit 55bc498f9d
4 files changed
+1 -19

No files matched your search

@@ -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.
*/