From 85770a43b02dd640b936d40367a2aa16771332e9 Mon Sep 17 00:00:00 2001 From: mrj4001 Date: Wed, 3 Apr 2024 21:57:00 +0530 Subject: [PATCH] Jira#527 : Fixed issue for allowing to add the publications regardless of the existing articles --- src/main/java/reciter/controller/ReCiterController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/reciter/controller/ReCiterController.java b/src/main/java/reciter/controller/ReCiterController.java index 4e95a3c5..3ddded3e 100644 --- a/src/main/java/reciter/controller/ReCiterController.java +++ b/src/main/java/reciter/controller/ReCiterController.java @@ -30,6 +30,7 @@ import java.util.Map; import java.util.Set; import java.util.stream.Collectors; +import java.util.Arrays; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; @@ -497,7 +498,7 @@ public ResponseEntity runFeatureGenerator(@RequestParam(value = "uid") String ui } else { - finalArticles = new ArrayList<>().add(0); + finalArticles = new ArrayList(Arrays.asList(0L));; } GoldStandard goldStandard = dynamoDbGoldStandardService.findByUid(uid); List knownPmids = null;