mirror of https://github.com/apache/lucene.git
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:
parent
a4591b1f05
commit
1452c34e82
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue