SOLR-707: throw exception from DocIterator remove()

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@689349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-08-27 03:23:46 +00:00
parent 4b98cf8953
commit 74a54a431f
1 changed files with 4 additions and 0 deletions

View File

@ -105,7 +105,11 @@ public class DocSlice extends DocSetBase implements DocList {
return nextDoc();
}
/**
* The remove operation is not supported by this Iterator.
*/
public void remove() {
throw new UnsupportedOperationException("The remove operation is not supported by this Iterator.");
}
public int nextDoc() {