Apache Solr open-source search software
LUCENE-2328: add jdoc details for deprecation of Directory.sync(String)
Michael McCandlessac530bd63665
diff --git a/lucene/src/java/org/apache/lucene/store/Directory.java b/lucene/src/java/org/apache/lucene/store/Directory.javaindex 5f6a915e92a..2a6cc3a831b 100644--- a/lucene/src/java/org/apache/lucene/store/Directory.java+++ b/lucene/src/java/org/apache/lucene/store/Directory.java@@ -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))*/@Deprecatedpublic void sync(String name) throws IOException { // TODO 4.0 kill me