From 28eb9a991fd87eefcc52e4b32419752ec2cfa73e Mon Sep 17 00:00:00 2001 From: Matthias Ronge Date: Tue, 18 Jun 2024 16:50:00 +0200 Subject: [PATCH] Fix checkstyle --- .../production/services/data/ProcessService.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Kitodo/src/main/java/org/kitodo/production/services/data/ProcessService.java b/Kitodo/src/main/java/org/kitodo/production/services/data/ProcessService.java index 73ec4f392f5..ca94fec9282 100644 --- a/Kitodo/src/main/java/org/kitodo/production/services/data/ProcessService.java +++ b/Kitodo/src/main/java/org/kitodo/production/services/data/ProcessService.java @@ -2584,7 +2584,7 @@ public void renameProcess(Process process, String newProcessTitle) throws IOExce renameImageDirectories(process, newProcessTitle); renameOcrDirectories(process, newProcessTitle); renameDefinedDirectories(process, newProcessTitle); - + process.setTitle(newProcessTitle); } @@ -2596,7 +2596,16 @@ private void renamePropertiesValuesForProcessTitle(List properties, St } } - // TODO: is it really a case that title is empty? + /** + * Removes properties with empty title. + * + * TODO: is it really a case that title is empty? + * + * @param properties + * property list to be checked + * @param process + * process from which the properties are to be deleted + */ public void removePropertiesWithEmptyTitle(List properties, Process process) { for (Property processProperty : properties) { if (Objects.isNull(processProperty.getTitle()) || processProperty.getTitle().isEmpty()) {