1
0
Fork 0

code formatting

This commit is contained in:
Claudio Atzori 2021-03-29 17:47:11 +02:00
parent 9237d55d7f
commit 27681b876c
1 changed files with 12 additions and 11 deletions

View File

@ -152,16 +152,17 @@ public class CleaningFunctions {
Optional Optional
.ofNullable(i.getPid()) .ofNullable(i.getPid())
.ifPresent(pid -> { .ifPresent(pid -> {
final Set<StructuredProperty> pids = final Set<StructuredProperty> pids = pid
pid
.stream() .stream()
.filter(Objects::nonNull) .filter(Objects::nonNull)
.filter(p -> StringUtils.isNotBlank(p.getValue())) .filter(p -> StringUtils.isNotBlank(p.getValue()))
.collect(Collectors.toCollection(HashSet::new)); .collect(Collectors.toCollection(HashSet::new));
Optional.ofNullable(i.getAlternateIdentifier()) Optional
.ofNullable(i.getAlternateIdentifier())
.ifPresent(altId -> { .ifPresent(altId -> {
final Set<StructuredProperty> altIds = altId.stream() final Set<StructuredProperty> altIds = altId
.stream()
.filter(Objects::nonNull) .filter(Objects::nonNull)
.filter(p -> StringUtils.isNotBlank(p.getValue())) .filter(p -> StringUtils.isNotBlank(p.getValue()))
.collect(Collectors.toCollection(HashSet::new)); .collect(Collectors.toCollection(HashSet::new));