don't call ensureOpen() twice for updateDocument

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1417951 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-12-06 15:41:24 +00:00
parent 6be0613c40
commit ffb1558e91
1 changed files with 1 additions and 1 deletions

View File

@ -1424,7 +1424,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
*/
public void updateDocument(Term term, IndexDocument doc) throws IOException {
ensureOpen();
updateDocument(term, doc, getAnalyzer());
updateDocument(term, doc, analyzer);
}
/**