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:
Michael McCandless 2009-04-07 22:52:49 +00:00
parent c7ac1fdec3
commit 9fc1c180b2
4 changed files with 7 additions and 0 deletions

View File

@ -350,6 +350,7 @@ abstract class DirectoryIndexReader extends IndexReader implements Cloneable {
directory.close();
}
/** @deprecated */
protected void doCommit() throws IOException {
doCommit(null);
}

View File

@ -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(); }

View File

@ -346,6 +346,7 @@ public class MultiReader extends IndexReader implements Cloneable {
return new MultiTermPositions(subReaders, starts);
}
/** @deprecated */
protected void doCommit() throws IOException {
doCommit(null);
}

View File

@ -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);
}