From 04fc22334629a0d37b76a9565aa429cb6fb8dc08 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Thu, 23 Apr 2020 11:07:44 +0200 Subject: [PATCH] add method addPid --- .../main/java/eu/dnetlib/dhp/schema/oaf/Author.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/oaf/Author.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/oaf/Author.java index eb122b14ea..dec1e463fd 100644 --- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/oaf/Author.java +++ b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/oaf/Author.java @@ -2,7 +2,6 @@ package eu.dnetlib.dhp.schema.oaf; import java.io.Serializable; import java.util.*; -import java.util.stream.Collectors; public class Author implements Serializable { @@ -86,17 +85,12 @@ public class Author implements Serializable { public void addPid(StructuredProperty pid) { - if (pid == null) - return; + if (pid == null) return; - if(this.pid == null){ + if (this.pid == null) { this.pid = Arrays.asList(pid); - }else{ + } else { this.pid.add(pid); } - - } - - }