RSS-105: Fixed checkstyle error
This commit is contained in:
parent
fe7e8a83df
commit
b7bf84c323
@ -1100,15 +1100,17 @@ public class Section {
|
|||||||
for (String value : values) {
|
for (String value : values) {
|
||||||
if (StringUtils.isNotBlank(value)) {
|
if (StringUtils.isNotBlank(value)) {
|
||||||
|
|
||||||
|
String searchString = value;
|
||||||
|
|
||||||
if (!start.isEmpty() && includeStart) {
|
if (!start.isEmpty() && includeStart) {
|
||||||
value = start + value;
|
searchString = start + searchString;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!stop.isEmpty() && includeStop){
|
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 -> {
|
found.forEach(f -> {
|
||||||
f.setSkipRemoveEntitiesContainedInLarger(skipRemoveEntitiesContainedInLarger);
|
f.setSkipRemoveEntitiesContainedInLarger(skipRemoveEntitiesContainedInLarger);
|
||||||
if(sortedResult){
|
if(sortedResult){
|
||||||
@ -1119,7 +1121,7 @@ public class Section {
|
|||||||
EntitySearchUtils.addEntitiesWithHigherRank(entities, found, dictionary);
|
EntitySearchUtils.addEntitiesWithHigherRank(entities, found, dictionary);
|
||||||
|
|
||||||
if (redactEverywhere && !isLocal()) {
|
if (redactEverywhere && !isLocal()) {
|
||||||
localDictionaryAdds.computeIfAbsent(asType, x -> new HashSet<>()).add(value.trim());
|
localDictionaryAdds.computeIfAbsent(asType, x -> new HashSet<>()).add(searchString.trim());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user