From 21a377c2ce313d58729aab4760fa80a75fc17c9a Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Mon, 25 Nov 2024 10:34:30 -0300 Subject: [PATCH] Use `JarFile.OPEN_READ` instead of `ZipFile` --- .../io/smallrye/common/resource/JarFileResourceLoader.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resource/src/main/java/io/smallrye/common/resource/JarFileResourceLoader.java b/resource/src/main/java/io/smallrye/common/resource/JarFileResourceLoader.java index ec3599b..60003b2 100644 --- a/resource/src/main/java/io/smallrye/common/resource/JarFileResourceLoader.java +++ b/resource/src/main/java/io/smallrye/common/resource/JarFileResourceLoader.java @@ -7,7 +7,6 @@ import java.util.jar.JarEntry; import java.util.jar.JarFile; import java.util.jar.Manifest; -import java.util.zip.ZipFile; /** * A resource loader which corresponds to a JAR file. @@ -25,7 +24,7 @@ public final class JarFileResourceLoader implements ResourceLoader { */ public JarFileResourceLoader(final Path jarPath) throws IOException { this.base = jarPath.toUri().toURL(); - jarFile = new JarFile(jarPath.toFile(), true, ZipFile.OPEN_READ, JarFile.runtimeVersion()); + jarFile = new JarFile(jarPath.toFile(), true, JarFile.OPEN_READ, JarFile.runtimeVersion()); } /**