remove iterator implementation

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1183768 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-10-15 23:35:52 +00:00
parent 7fe1d8effa
commit 332da4dff8
1 changed files with 1 additions and 19 deletions

View File

@ -47,25 +47,7 @@ public final class Document implements Iterable<IndexableField> {
@Override
public Iterator<IndexableField> iterator() {
return new Iterator<IndexableField>() {
private int fieldUpto = 0;
@Override
public boolean hasNext() {
return fieldUpto < fields.size();
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
@Override
public IndexableField next() {
return fields.get(fieldUpto++);
}
};
return fields.iterator();
}
/**