Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

add Closeable

Michael McCandless3c5031804f0c
diff --git a/lucene/core/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java b/lucene/core/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java
index 6ce2d6f11c9..b5393e5affb 100644
--- a/lucene/core/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java
+++ b/lucene/core/src/java/org/apache/lucene/index/PersistentSnapshotDeletionPolicy.java
@@ -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;
@@ -46,7 +47,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.