summaryrefslogtreecommitdiffstats
path: root/vespaclient-core
diff options
context:
space:
mode:
Diffstat (limited to 'vespaclient-core')
-rw-r--r--vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterList.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterList.java b/vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterList.java
index de3a85d9a9e..7587630a985 100644
--- a/vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterList.java
+++ b/vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterList.java
@@ -14,7 +14,7 @@ public class ClusterList {
List<ClusterDef> contentClusters = new ArrayList<>();
public ClusterList() {
- this(Collections.emptyList());
+ this(new ArrayList<>());
}
public ClusterList(List<ClusterDef> contentClusters) {
@@ -35,6 +35,7 @@ public class ClusterList {
contentClusters.add(new ClusterDef(config.storage(i).name(), config.storage(i).configid()));
}
+ /** Returns a reference to the mutable list */
public List<ClusterDef> getStorageClusters() {
return contentClusters; // TODO: Use immutable list
}