add Closeable

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457459 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-03-17 15:13:37 +00:00
parent 20cb1cdca9
commit 3c5031804f
1 changed files with 3 additions and 2 deletions

View File

@ -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.