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;