code formatting

This commit is contained in:
Claudio Atzori 2024-08-05 12:12:29 +02:00
parent cbe877b73c
commit ed6d71fc70
1 changed files with 5 additions and 6 deletions

View File

@ -105,7 +105,6 @@ public class CreateActionSetFromWebEntries implements Serializable {
+ IdentifierFactory.md5(PidCleaner.normalizePidValue("ROR", row.getAs("ror"))); + IdentifierFactory.md5(PidCleaner.normalizePidValue("ROR", row.getAs("ror")));
ret.addAll(createAffiliationRelationPairDOI(row.getAs("doi"), ror)); ret.addAll(createAffiliationRelationPairDOI(row.getAs("doi"), ror));
return ret return ret
.iterator(); .iterator();
}, Encoders.bean(Relation.class)) }, Encoders.bean(Relation.class))
@ -155,11 +154,11 @@ public class CreateActionSetFromWebEntries implements Serializable {
} }
private static String removeResolver(String pidType, String pid) { private static String removeResolver(String pidType, String pid) {
if (pidType.equals("DOI")) { if (pidType.equals("DOI")) {
return pid.substring(16); return pid.substring(16);
} }
throw new IllegalArgumentException("DOI is the only supported PID type"); throw new IllegalArgumentException("DOI is the only supported PID type");
} }
private static List<Relation> createAffiliationRelationPairDOI(String doi, String ror) { private static List<Relation> createAffiliationRelationPairDOI(String doi, String ror) {
if (doi == null) if (doi == null)