You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2013/03/17 16:12:37 UTC

svn commit: r1457458 - /lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java

Author: mikemccand
Date: Sun Mar 17 15:12:37 2013
New Revision: 1457458

URL: http://svn.apache.org/r1457458
Log:
add Closeable

Modified:
    lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java

Modified: lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java?rev=1457458&r1=1457457&r2=1457458&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java Sun Mar 17 15:12:37 2013
@@ -17,11 +17,12 @@ package org.apache.lucene.index;
  * the License.
  */
 
+import java.io.Closeable;
 import java.io.IOException;
 import java.util.HashMap;
 import java.util.List;
-import java.util.Map;
 import java.util.Map.Entry;
+import java.util.Map;
 
 import org.apache.lucene.document.Document;
 import org.apache.lucene.document.Field;
@@ -45,7 +46,7 @@ import org.apache.lucene.util.Version;
  * <b>NOTE:</b> you should call {@link #close()} when you're done using this
  * class for safety (it will close the {@link IndexWriter} instance used).
  */
-public class PersistentSnapshotDeletionPolicy extends SnapshotDeletionPolicy {
+public class PersistentSnapshotDeletionPolicy extends SnapshotDeletionPolicy implements Closeable {
 
   // Used to validate that the given directory includes just one document w/ the
   // given ID field. Otherwise, it's not a valid Directory for snapshotting.