RSS-105: Fixed checkstyle error

This commit is contained in:
deiflaender 2022-09-13 11:44:28 +02:00
parent fe7e8a83df
commit b7bf84c323

View File

@ -1100,15 +1100,17 @@ public class Section {
for (String value : values) {
if (StringUtils.isNotBlank(value)) {
String searchString = value;
if (!start.isEmpty() && includeStart) {
value = start + value;
searchString = start + searchString;
}
if(!stop.isEmpty() && includeStop){
value = value + stop;
searchString = searchString + stop;
}
Set<Entity> found = findEntities(value.trim(), asType, false, redaction, ruleNumber, reason, legalBasis, Engine.RULE, false);
Set<Entity> found = findEntities(searchString.trim(), asType, false, redaction, ruleNumber, reason, legalBasis, Engine.RULE, false);
found.forEach(f -> {
f.setSkipRemoveEntitiesContainedInLarger(skipRemoveEntitiesContainedInLarger);
if(sortedResult){
@ -1119,7 +1121,7 @@ public class Section {
EntitySearchUtils.addEntitiesWithHigherRank(entities, found, dictionary);
if (redactEverywhere && !isLocal()) {
localDictionaryAdds.computeIfAbsent(asType, x -> new HashSet<>()).add(value.trim());
localDictionaryAdds.computeIfAbsent(asType, x -> new HashSet<>()).add(searchString.trim());
}
}
}