PersistentEnumerator implements Closeable

This commit is contained in:
Maxim.Mossienko
2011-06-29 10:11:58 +04:00
parent 458a8b1fb2
commit c4ea154c5c
2 changed files with 2 additions and 2 deletions
@@ -35,7 +35,7 @@ import java.util.List;
* @author max
* @author jeka
*/
public class PersistentEnumerator<Data> implements Forceable {
public class PersistentEnumerator<Data> implements Forceable, Closeable {
private static final Logger LOG = Logger.getInstance("#com.intellij.util.io.PersistentEnumerator");
protected static final int NULL_ID = 0;
protected static final int DATA_OFFSET = 8;
@@ -651,7 +651,7 @@ public class MavenIndex {
if (exceptions[0] != null) throw exceptions[0];
}
private void safeClose(PersistentEnumerator enumerator, MavenIndexException[] exceptions) {
private void safeClose(Closeable enumerator, MavenIndexException[] exceptions) {
try {
if (enumerator != null) enumerator.close();
}