Remove obsolete ensureOpen()

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1238772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-01-31 19:49:56 +00:00
parent a4591b1f05
commit 1452c34e82
1 changed files with 0 additions and 1 deletions

View File

@ -377,7 +377,6 @@ public abstract class IndexReader implements Closeable {
// Document returned here contains that class not
// IndexableField
public final Document document(int docID) throws CorruptIndexException, IOException {
ensureOpen();
final DocumentStoredFieldVisitor visitor = new DocumentStoredFieldVisitor();
document(docID, visitor);
return visitor.getDocument();