lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r702271 - /lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java
Date Mon, 06 Oct 2008 21:23:24 GMT
Author: mikemccand
Date: Mon Oct  6 14:23:24 2008
New Revision: 702271

URL: http://svn.apache.org/viewvc?rev=702271&view=rev
Log:
LUCENE-1412: clarify Directory.copy javadocs: the source dir cannot change while copy is running

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java?rev=702271&r1=702270&r2=702271&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java Mon Oct  6 14:23:24
2008
@@ -168,6 +168,11 @@
    * If a file in src already exists in dest then the
    * one in dest will be blindly overwritten.
    *
+   * <p><b>NOTE:</b> the source directory cannot change
+   * while this method is running.  Otherwise the results
+   * are undefined and you could easily hit a
+   * FileNotFoundException.
+   *
    * @param src source directory
    * @param dest destination directory
    * @param closeDirSrc if <code>true</code>, call {@link #close()} method on
source directory



Mime
View raw message