Skip to content

Commit

Permalink
Config.uris uses toList() collector
Browse files Browse the repository at this point in the history
  • Loading branch information
carterkozak committed Nov 6, 2024
1 parent 295373d commit ea1afe0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -56,8 +55,7 @@ default ClientConfiguration clientConf() {

@Value.Default
default Refreshable<List<TargetUri>> 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
Expand Down

0 comments on commit ea1afe0

Please sign in to comment.