fixed pmd

This commit is contained in:
Timo 2021-07-13 11:39:44 +03:00
parent af46bdca90
commit 2d0a6d4d29

View File

@ -635,9 +635,8 @@ public class RedactionLogCreatorService {
for (var manualRedaction : manualRedactions.getEntriesToAdd()) { for (var manualRedaction : manualRedactions.getEntriesToAdd()) {
if (manualRedaction.getProcessedDate() == null) { // not yet processed, and dictionary modifying, show in redaction-log preview
if (manualRedaction.getProcessedDate() == null && manualRedaction.isAddToDictionary() || manualRedaction.isAddToDossierDictionary()) {
if (manualRedaction.isAddToDictionary() || manualRedaction.isAddToDossierDictionary()) {
var redactionLogEntry = createRedactionLogEntry(manualRedaction, manualRedaction.getId(), dossierTemplateId); var redactionLogEntry = createRedactionLogEntry(manualRedaction, manualRedaction.getId(), dossierTemplateId);
redactionLogEntry.setDictionaryEntry(manualRedaction.isAddToDossierDictionary()); redactionLogEntry.setDictionaryEntry(manualRedaction.isAddToDossierDictionary());
redactionLogEntry.setDossierDictionaryEntry(manualRedaction.isAddToDossierDictionary()); redactionLogEntry.setDossierDictionaryEntry(manualRedaction.isAddToDossierDictionary());
@ -657,7 +656,6 @@ public class RedactionLogCreatorService {
} }
} }
} }
}
public static class PreviewReasonHolder implements ReasonHolder { public static class PreviewReasonHolder implements ReasonHolder {