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