LUCENE-2328: add jdoc details for deprecation of Directory.sync(String)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@926948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-03-24 06:25:13 +00:00
parent f6dd096703
commit ac530bd636
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ public abstract class Directory implements Closeable {
* stable storage. Lucene uses this to properly commit
* changes to the index, to prevent a machine/OS crash
* from corrupting the index.
* @deprecated use {@link #sync(Collection)} instead.
* For easy migration you can change your code to call
* sync(Collections.singleton(name))
*/
@Deprecated
public void sync(String name) throws IOException { // TODO 4.0 kill me