LUCENE-2076: Rename FSDir.getFile -> getDirectory

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@882591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-11-20 14:59:23 +00:00
parent 961a41144d
commit 0a1cce0f63
2 changed files with 22 additions and 0 deletions

View File

@ -2,6 +2,22 @@ Lucene Change Log
$Id$
======================= Trunk (not yet released) =======================
Changes in backwards compatibility policy
Changes in runtime behavior
API Changes
* LUCENE-2076: Rename FSDirectory.getFile -> getDirectory. (George
Aroush via Mike McCandless)
Bug fixes
New features
Optimizations
Build
======================= Release 3.0.0 2009-11-25 =======================

View File

@ -372,7 +372,13 @@ public abstract class FSDirectory extends Directory {
isOpen = false;
}
/** @deprecated Use {@link #getDirectory} instead. */
public File getFile() {
return getDirectory();
}
/** @return the underlying filesystem directory */
public File getDirectory() {
ensureOpen();
return directory;
}