Skip to content

Commit

Permalink
cosmetic: eliminate code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Aug 15, 2024
1 parent 1e45121 commit facc0b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ private List<TemporaryContentPackageFile> processContentPackage(ContentPackageFi
File tempFile = File.createTempFile(FilenameUtils.getBaseName(pkg.getFile().getName()), ".zip");

// open original content package
try (ZipFile zipFileIn = new ZipFile(pkg.getFile())) {
try (ZipFile zipFileIn = new ZipFile.Builder().setFile(pkg.getFile()).get()) {

// iterate through entries and write them to the temp. zip file
try (FileOutputStream fos = new FileOutputStream(tempFile);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ public String getPackageInfoWithDependencies() {
StringBuilder sb = new StringBuilder();
sb.append(getPackageInfo());
if (this.dependencies != null) {
sb.append(" (dependencies: ");
sb.append(this.dependencies);
sb.append(")");
sb.append(" (dependencies: ").append(this.dependencies).append(")");
}
return sb.toString();
}
Expand Down

0 comments on commit facc0b0

Please sign in to comment.