diff --git a/src/main/java/cpw/mods/jarhandling/JarContents.java b/src/main/java/cpw/mods/jarhandling/JarContents.java index bcbb675..da4366c 100644 --- a/src/main/java/cpw/mods/jarhandling/JarContents.java +++ b/src/main/java/cpw/mods/jarhandling/JarContents.java @@ -2,6 +2,7 @@ import org.jetbrains.annotations.ApiStatus; +import java.io.Closeable; import java.io.IOException; import java.net.URI; import java.nio.file.Path; @@ -19,7 +20,7 @@ * Convert to a full jar with {@link SecureJar#from(JarContents)}. */ @ApiStatus.NonExtendable -public interface JarContents extends AutoCloseable { +public interface JarContents extends Closeable { /** * @see SecureJar#getPrimaryPath() */ @@ -70,10 +71,4 @@ static JarContents of(Path fileOrFolder) { static JarContents of(Collection filesOrFolders) { return new JarContentsBuilder().paths(filesOrFolders.toArray(new Path[0])).build(); } - - /** - * Closes the underlying resources. - */ - @Override - void close() throws IOException; } diff --git a/src/main/java/cpw/mods/jarhandling/impl/JarContentsImpl.java b/src/main/java/cpw/mods/jarhandling/impl/JarContentsImpl.java index c019e56..d198444 100644 --- a/src/main/java/cpw/mods/jarhandling/impl/JarContentsImpl.java +++ b/src/main/java/cpw/mods/jarhandling/impl/JarContentsImpl.java @@ -23,7 +23,6 @@ import java.util.Map; import java.util.Optional; import java.util.Set; -import java.util.function.BiPredicate; import java.util.function.Supplier; import java.util.jar.JarFile; import java.util.jar.JarInputStream;