Skip to content

Commit d7858f6

Browse files
committed
WIP use Autocloseable in maps
Compiles with an error: AbstractReadOnlyMap.java:32: warning: [try] auto-closeable resource AbstractReadOnlyMap<K,V> has a member method close() that could throw InterruptedException public abstract class AbstractReadOnlyMap<K, V> implements Map<K, V>, AutoCloseable { ^ where K,V are type-variables: K extends Object declared in class AbstractReadOnlyMap V extends Object declared in class AbstractReadOnlyMap "
1 parent 04de1f3 commit d7858f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

metamorph-api/src/main/java/org/metafacture/metamorph/api/helpers/AbstractReadOnlyMap.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.metafacture.metamorph.api.helpers;
1818

19-
import java.io.Closeable;
2019
import java.util.Collection;
2120
import java.util.Map;
2221
import java.util.Set;
@@ -30,7 +29,7 @@
3029
* @param <V> type of values
3130
* @author Markus Michael Geipel
3231
*/
33-
public abstract class AbstractReadOnlyMap<K, V> implements Map<K, V>, Closeable {
32+
public abstract class AbstractReadOnlyMap<K, V> implements Map<K, V>, AutoCloseable {
3433

3534
@Override
3635
public final int size() {

0 commit comments

Comments
 (0)