From 76b46a9aef1665dd01a3c4dab583dc192fb349de Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Fri, 30 Sep 2016 11:27:48 +0200 Subject: Always use a mutable list for now --- vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterList.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vespaclient-core') 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 contentClusters = new ArrayList<>(); public ClusterList() { - this(Collections.emptyList()); + this(new ArrayList<>()); } public ClusterList(List 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 getStorageClusters() { return contentClusters; // TODO: Use immutable list } -- cgit v1.2.3