From 4b339df43fc6011d3ffe9d40fc3c9f333b2d0f65 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Thu, 10 Nov 2022 09:32:05 +0100 Subject: [PATCH] [DUMP INDICATORS ] refactoring --- .../dhp/oa/graph/dump/complete/DumpGraphEntities.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dump/src/main/java/eu/dnetlib/dhp/oa/graph/dump/complete/DumpGraphEntities.java b/dump/src/main/java/eu/dnetlib/dhp/oa/graph/dump/complete/DumpGraphEntities.java index 78e4eb8..4e176e7 100644 --- a/dump/src/main/java/eu/dnetlib/dhp/oa/graph/dump/complete/DumpGraphEntities.java +++ b/dump/src/main/java/eu/dnetlib/dhp/oa/graph/dump/complete/DumpGraphEntities.java @@ -126,10 +126,12 @@ public class DumpGraphEntities implements Serializable { Optional .ofNullable(d.getPid()) .ifPresent( - pids -> datasource.setPid(pids - .stream() - .map(p -> DatasourcePid.newInstance(p.getQualifier().getClassid(), p.getValue())) - .collect(Collectors.toList()))); + pids -> datasource + .setPid( + pids + .stream() + .map(p -> DatasourcePid.newInstance(p.getQualifier().getClassid(), p.getValue())) + .collect(Collectors.toList()))); Optional .ofNullable(d.getDatasourcetype())