mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PersistentEnumerator implements Closeable
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user