Skip to content

Commit

Permalink
NativeBinaryLoader#initializeLibraryExtractor(...): simplified the co…
Browse files Browse the repository at this point in the history
…mpression stream provider
  • Loading branch information
pavly-gerges committed Aug 6, 2024
1 parent 877fe08 commit e323af0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.jar.JarFile;
import java.util.logging.Level;
import java.lang.UnsatisfiedLinkError;
import electrostatic4j.snaploader.filesystem.FileExtractionListener;
Expand Down Expand Up @@ -349,7 +350,7 @@ public void onExtractionFinalization(FileExtractor fileExtractor, FileLocator fi
protected FileExtractor initializeLibraryExtractor(NativeDynamicLibrary library) throws Exception {
FileExtractor extractor;
if (library.getJarPath() != null) {
extractor = new LibraryExtractor(library.getJarPath(), library.getCompressedLibrary(), library.getExtractedLibrary());
extractor = new LibraryExtractor(new JarFile(library.getJarPath()), library.getCompressedLibrary(), library.getExtractedLibrary());
} else {
extractor = new LibraryExtractor(library.getCompressedLibrary(), library.getExtractedLibrary());
}
Expand Down

0 comments on commit e323af0

Please sign in to comment.