[DUMP INDICATORS ] refactoring

This commit is contained in:
Miriam Baglioni 2022-11-10 09:32:05 +01:00
parent 3cc2802a75
commit 4b339df43f
1 changed files with 6 additions and 4 deletions

View File

@ -126,7 +126,9 @@ public class DumpGraphEntities implements Serializable {
Optional
.ofNullable(d.getPid())
.ifPresent(
pids -> datasource.setPid(pids
pids -> datasource
.setPid(
pids
.stream()
.map(p -> DatasourcePid.newInstance(p.getQualifier().getClassid(), p.getValue()))
.collect(Collectors.toList())));