From 960cb861a0ace5556213016942ca0b05039632ca Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Fri, 23 Sep 2022 11:14:04 +0200 Subject: [PATCH] refactoring --- .../main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscBulkTag.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscBulkTag.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscBulkTag.java index ed2d19253..c4b2122b4 100644 --- a/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscBulkTag.java +++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/eosc/SparkEoscBulkTag.java @@ -121,7 +121,7 @@ public class SparkEoscBulkTag implements Serializable { .getInstance() .stream() .anyMatch( - i -> (hostedByList.contains(i.getHostedby().getKey())) ) + i -> (hostedByList.contains(i.getHostedby().getKey()))) && !value.getContext().stream().anyMatch(c -> c.getId().equals("eosc"))) { Context context = new Context();