1
0
Fork 0

replaced null value

This commit is contained in:
Enrico Ottonello 2020-10-22 16:24:42 +02:00
parent b0290dbcb7
commit 210a50e4f4
1 changed files with 5 additions and 5 deletions

View File

@ -169,8 +169,7 @@ public class PublicationToOaf implements Serializable {
Field<String> sourceField = mapStringField(source, null);
if (sourceField == null) {
publication.setSource(null);
}
else {
} else {
publication.setSource(Arrays.asList(sourceField));
}
}
@ -383,7 +382,8 @@ public class PublicationToOaf implements Serializable {
.map(r -> {
return mapStructuredProperty(r, q, null);
})
.filter(s -> s!=null).collect(Collectors.toList()));
.filter(s -> s != null)
.collect(Collectors.toList()));
}
}