diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/ServicesList.java b/src/main/java/eu/omp/irap/vespa/epntapclient/ServicesList.java index 80f32a6..41c7b11 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/ServicesList.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/ServicesList.java @@ -57,8 +57,7 @@ public class ServicesList { * @return the tableName */ public List getTableNames() { - List tableNames = new ArrayList<>(); - tableNames.addAll(selectedTableNames); + List tableNames = selectedTableNames; tableNames.addAll(customTableNames); return tableNames; } @@ -67,8 +66,7 @@ public class ServicesList { * @return the targetUrl */ public List getTargetUrls() { - List targetUrls = new ArrayList<>(); - targetUrls.addAll(selectedTargetUrls); + List targetUrls = selectedTargetUrls; targetUrls.addAll(customTargetUrls); return targetUrls; } -- libgit2 0.21.2