From 56698909342f2a9e71b87bcd955b9c48cfe05e29 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Wed, 4 Nov 2020 17:15:21 +0100 Subject: [PATCH] removed commented lines --- .../eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java index 9bb6653d0..4c3bc0dd5 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java @@ -156,7 +156,6 @@ public class ResultMapper implements Serializable { .ifPresent(value -> value.stream().forEach(c -> contributorList.add(c.getValue()))); out.setContributor(contributorList); - // List countryList = new ArrayList<>(); Optional .ofNullable(input.getCountry()) .ifPresent( @@ -188,8 +187,6 @@ public class ResultMapper implements Serializable { .filter(Objects::nonNull) .collect(Collectors.toList()))); - // out.setCountry(countryList); - final List coverageList = new ArrayList<>(); Optional .ofNullable(input.getCoverage()) @@ -397,12 +394,7 @@ public class ResultMapper implements Serializable { } - private static void setCommonValue(eu.dnetlib.dhp.schema.oaf.Instance i, I instance) {// - // I - // getInstance(eu.dnetlib.dhp.schema.oaf.Instance - // i, boolean graph) { + private static void setCommonValue(eu.dnetlib.dhp.schema.oaf.Instance i, I instance) { Optional opAr = Optional .ofNullable(i.getAccessright()); if (opAr.isPresent()) { @@ -427,7 +419,6 @@ public class ResultMapper implements Serializable { Optional .ofNullable(i.getRefereed()) .ifPresent(value -> instance.setRefereed(value.getClassname())); - // .ifPresent(value -> instance.setRefereed(value.getValue())); Optional .ofNullable(i.getInstancetype()) .ifPresent(value -> instance.setType(value.getClassname())); @@ -437,10 +428,8 @@ public class ResultMapper implements Serializable { private static List getUniqueProvenance(List provenance) { Provenance iProv = new Provenance(); - // iProv.setProvenance(Constants.INFERRED); Provenance hProv = new Provenance(); - // hProv.setProvenance(Constants.HARVESTED); Provenance lProv = new Provenance(); for (Provenance p : provenance) {