Skip to content

Commit

Permalink
Fix some compiler warnings
Browse files Browse the repository at this point in the history
These warnings are fixed:
```
[WARNING] /kitodo-production/Kitodo/src/main/java/org/kitodo/production/services/command/KitodoScriptService.java:[404,21] non-varargs call of varargs method with inexact argument type for last parameter;
[WARNING] /kitodo-production/Kitodo/src/main/java/org/kitodo/production/services/command/KitodoScriptService.java:[410,21] non-varargs call of varargs method with inexact argument type for last parameter;
[WARNING] /kitodo-production/Kitodo/src/main/java/org/kitodo/production/services/command/KitodoScriptService.java:[426,21] non-varargs call of varargs method with inexact argument type for last parameter;
```

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 25, 2024
1 parent ee97b68 commit 64df25a
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 64df25a

Please sign in to comment.