diff options
Diffstat (limited to 'vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterList.java')
-rw-r--r-- | vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterList.java | 2 |
1 files changed, 1 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 c42d48b4821..452ab175862 100644 --- a/vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterList.java +++ b/vespaclient-core/src/main/java/com/yahoo/vespaclient/ClusterList.java @@ -36,7 +36,7 @@ public class ClusterList { private static List<ClusterDef> parse(ClusterListConfig config) { return config.storage().stream() .map(storage -> new ClusterDef(storage.name())) - .collect(Collectors.toUnmodifiableList()); + .toList(); } } |