Skip to content

Commit

Permalink
Merge branch 'Compress' of https://github.com/genexuslabs/JavaClasses
Browse files Browse the repository at this point in the history
…into Compress
  • Loading branch information
tomas-sexenian committed Jun 11, 2024
2 parents e12a0a4 + 5f5233e commit f7f79c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import org.apache.logging.log4j.Logger;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;

public class Compression {
Expand Down Expand Up @@ -70,4 +68,4 @@ public void clear() {
this.format = "";
this.filesToCompress = new Vector<>();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,6 @@ public static void decompressJar(File jarFile, String outputPath) throws IOExcep
if (!outputFile.getPath().startsWith(outputDir.getCanonicalPath() + File.separator)) {
throw new IOException("Entry is outside of the target dir: " + entry.getName());
}
if (entry.isDirectory() && !outputFile.exists() && !outputFile.mkdirs()) {
throw new IOException("Failed to create directory " + outputFile.getAbsolutePath());
} else {
try (FileOutputStream fos = new FileOutputStream(outputFile)) {
int len;
Expand Down

0 comments on commit f7f79c3

Please sign in to comment.