From ea1afe0224382c0a5ad32c7420559d6f39adba8a Mon Sep 17 00:00:00 2001 From: Carter Kozak Date: Wed, 6 Nov 2024 11:55:26 -0500 Subject: [PATCH] Config.uris uses `toList()` collector --- .../src/main/java/com/palantir/dialogue/core/Config.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dialogue-core/src/main/java/com/palantir/dialogue/core/Config.java b/dialogue-core/src/main/java/com/palantir/dialogue/core/Config.java index 1cd12ddaf..706f92bfe 100644 --- a/dialogue-core/src/main/java/com/palantir/dialogue/core/Config.java +++ b/dialogue-core/src/main/java/com/palantir/dialogue/core/Config.java @@ -30,7 +30,6 @@ import java.util.OptionalInt; import java.util.Random; import java.util.concurrent.ScheduledExecutorService; -import java.util.stream.Collectors; import org.immutables.value.Value; /** Private class to centralize validation of params necessary to construct a dialogue channel. */ @@ -56,8 +55,7 @@ default ClientConfiguration clientConf() { @Value.Default default Refreshable> uris() { - return Refreshable.only( - rawConfig().uris().stream().map(TargetUri::of).collect(Collectors.toUnmodifiableList())); + return Refreshable.only(rawConfig().uris().stream().map(TargetUri::of).toList()); } @Value.Derived