mirror of https://github.com/apache/lucene.git
LUCENE-1546: also declare all subclasses' doCommit() to be deprecated
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@763024 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c7ac1fdec3
commit
9fc1c180b2
|
@ -350,6 +350,7 @@ abstract class DirectoryIndexReader extends IndexReader implements Cloneable {
|
|||
directory.close();
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
protected void doCommit() throws IOException {
|
||||
doCommit(null);
|
||||
}
|
||||
|
|
|
@ -209,8 +209,12 @@ public class FilterIndexReader extends IndexReader {
|
|||
}
|
||||
|
||||
protected void doDelete(int n) throws CorruptIndexException, IOException { in.deleteDocument(n); }
|
||||
|
||||
/** @deprecated */
|
||||
protected void doCommit() throws IOException { doCommit(null); }
|
||||
|
||||
protected void doCommit(String commitUserData) throws IOException { in.commit(commitUserData); }
|
||||
|
||||
protected void doClose() throws IOException { in.close(); }
|
||||
|
||||
|
||||
|
|
|
@ -346,6 +346,7 @@ public class MultiReader extends IndexReader implements Cloneable {
|
|||
return new MultiTermPositions(subReaders, starts);
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
protected void doCommit() throws IOException {
|
||||
doCommit(null);
|
||||
}
|
||||
|
|
|
@ -436,6 +436,7 @@ public class ParallelReader extends IndexReader {
|
|||
return (IndexReader[]) readers.toArray(new IndexReader[readers.size()]);
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
protected void doCommit() throws IOException {
|
||||
doCommit(null);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue