Commit 8154d35315c47095302e0ec56e0c6db9e1d40525

Authored by Nathanael Jourdane
1 parent 6a3234a8
Exists in master

list optimizations.

src/main/java/eu/omp/irap/vespa/epntapclient/ServicesList.java
... ... @@ -57,8 +57,7 @@ public class ServicesList {
57 57 * @return the tableName
58 58 */
59 59 public List<String> getTableNames() {
60   - List<String> tableNames = new ArrayList<>();
61   - tableNames.addAll(selectedTableNames);
  60 + List<String> tableNames = selectedTableNames;
62 61 tableNames.addAll(customTableNames);
63 62 return tableNames;
64 63 }
... ... @@ -67,8 +66,7 @@ public class ServicesList {
67 66 * @return the targetUrl
68 67 */
69 68 public List<String> getTargetUrls() {
70   - List<String> targetUrls = new ArrayList<>();
71   - targetUrls.addAll(selectedTargetUrls);
  69 + List<String> targetUrls = selectedTargetUrls;
72 70 targetUrls.addAll(customTargetUrls);
73 71 return targetUrls;
74 72 }
... ...