From ed6d71fc70a367e9a256ebb3fd7e86ee41c0a858 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Mon, 5 Aug 2024 12:12:29 +0200 Subject: [PATCH] code formatting --- .../webcrawl/CreateActionSetFromWebEntries.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/webcrawl/CreateActionSetFromWebEntries.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/webcrawl/CreateActionSetFromWebEntries.java index 7065d8086f..e163c8556f 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/webcrawl/CreateActionSetFromWebEntries.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/webcrawl/CreateActionSetFromWebEntries.java @@ -105,7 +105,6 @@ public class CreateActionSetFromWebEntries implements Serializable { + IdentifierFactory.md5(PidCleaner.normalizePidValue("ROR", row.getAs("ror"))); ret.addAll(createAffiliationRelationPairDOI(row.getAs("doi"), ror)); - return ret .iterator(); }, Encoders.bean(Relation.class)) @@ -155,11 +154,11 @@ public class CreateActionSetFromWebEntries implements Serializable { } private static String removeResolver(String pidType, String pid) { - if (pidType.equals("DOI")) { - return pid.substring(16); - } - throw new IllegalArgumentException("DOI is the only supported PID type"); - } + if (pidType.equals("DOI")) { + return pid.substring(16); + } + throw new IllegalArgumentException("DOI is the only supported PID type"); + } private static List createAffiliationRelationPairDOI(String doi, String ror) { if (doi == null)