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 9bb6653d0b..4c3bc0dd52 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) {