summaryrefslogtreecommitdiffstats
path: root/vespaclient-core
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-09-30 11:27:48 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-09-30 11:27:48 +0200
commit76b46a9aef1665dd01a3c4dab583dc192fb349de (patch)
tree597f7a6006bc63a721f3eedce4a903319045228e /vespaclient-core
parent21362da548e6664a01532d56682ab919b50f16a9 (diff)
Always use a mutable list for now
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
}