Skip to content

Commit

Permalink
Merge pull request kitodo#6148 from stweil/non-varargs
Browse files Browse the repository at this point in the history
Fix some compiler warnings
  • Loading branch information
solth authored Aug 9, 2024
2 parents 9f5468c + 64df25a commit 795f3bf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,13 @@ private void generateImages(List<Process> processes, GenerationMode generationMo
Folder generatorSource = process.getProject().getGeneratorSource();
if (Objects.isNull(generatorSource)) {
Helper.setErrorMessage("kitodoScript.generateImages.error.noSourceFolder",
new String[] {process.getTitle(), process.getProject().getTitle() });
process.getTitle(), process.getProject().getTitle());
continue;
}
Subfolder sourceFolder = new Subfolder(process, generatorSource);
if (sourceFolder.listContents().isEmpty()) {
Helper.setErrorMessage("kitodoScript.generateImages.error.noSourceFiles",
new String[] {process.getTitle(), sourceFolder.getRelativeDirectoryPath() });
process.getTitle(), sourceFolder.getRelativeDirectoryPath());
continue;
}
boolean all = folders.size() == 1 && folders.get(0).equalsIgnoreCase("all");
Expand All @@ -423,7 +423,7 @@ private void generateImages(List<Process> processes, GenerationMode generationMo
}
if (outputFolders.isEmpty()) {
Helper.setErrorMessage("kitodoScript.generateImages.error.noDestination",
new String[] {process.getTitle(), String.join(", ", ungeneratableFolders) });
process.getTitle(), String.join(", ", ungeneratableFolders));
continue;
}
ImageGenerator imageGenerator = new ImageGenerator(sourceFolder, generationMode, outputFolders);
Expand Down

0 comments on commit 795f3bf

Please sign in to comment.