Skip to content

Apache Lucene open-source search software

remove references to getDirectory methods from FSDirectory javadocs since we've deprecated them

Michael McCandless7f6c38fc7754
diff --git a/src/java/org/apache/lucene/store/FSDirectory.java b/src/java/org/apache/lucene/store/FSDirectory.java
index efb3abdd052..98940ca18cf 100644
--- a/src/java/org/apache/lucene/store/FSDirectory.java
+++ b/src/java/org/apache/lucene/store/FSDirectory.java
@@ -41,10 +41,6 @@ import org.apache.lucene.index.IndexWriter;
* <code>org.apache.lucene.store.FSDirectoryLockFactoryClass</code> Java system
* property, or by calling {@link #setLockFactory} after creating
* the Directory.
-
- * <p>Directories are cached, so that, for a given canonical
- * path, the same FSDirectory instance will always be
- * returned by <code>getDirectory</code>.</p>
*
* @see Directory
*/
@@ -284,8 +280,6 @@ public class FSDirectory extends Directory {
* @param path the path of the directory
* @param lockFactory the lock factory to use, or null for the default.
* @throws IOException
- *
- * Use {@link #getDirectory(String)} if singletons per path are needed.
*/
public FSDirectory(File path, LockFactory lockFactory) throws IOException {
path = getCanonicalPath(path);