From 16baf5b69eb07294738e71e27e385388f754d3bc Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Fri, 30 Oct 2020 14:13:14 +0100 Subject: [PATCH] formatting --- .../community/SparkPrepareResultProject.java | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/community/SparkPrepareResultProject.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/community/SparkPrepareResultProject.java index 5cb9d5bc30..39850b5b8e 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/community/SparkPrepareResultProject.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/community/SparkPrepareResultProject.java @@ -122,31 +122,31 @@ public class SparkPrepareResultProject implements Serializable { private static Project getProject(eu.dnetlib.dhp.schema.oaf.Project op) { Project p = Project - .newInstance( - op.getId(), - op.getCode().getValue(), - Optional - .ofNullable(op.getAcronym()) - .map(a -> a.getValue()) - .orElse(null), - Optional - .ofNullable(op.getTitle()) - .map(v -> v.getValue()) - .orElse(null), - Optional - .ofNullable(op.getFundingtree()) - .map(value -> { - List tmp = value - .stream() - .map(ft -> getFunder(ft.getValue())) - .collect(Collectors.toList()); - if (tmp.size() > 0) { - return tmp.get(0); - } else { - return null; - } - }) - .orElse(null)); + .newInstance( + op.getId(), + op.getCode().getValue(), + Optional + .ofNullable(op.getAcronym()) + .map(a -> a.getValue()) + .orElse(null), + Optional + .ofNullable(op.getTitle()) + .map(v -> v.getValue()) + .orElse(null), + Optional + .ofNullable(op.getFundingtree()) + .map(value -> { + List tmp = value + .stream() + .map(ft -> getFunder(ft.getValue())) + .collect(Collectors.toList()); + if (tmp.size() > 0) { + return tmp.get(0); + } else { + return null; + } + }) + .orElse(null)); Optional di = Optional.ofNullable(op.getDataInfo()); Provenance provenance = new Provenance();