diff --git a/core/src/main/java/io/bisq/core/network/SeedNodeAddresses.java b/core/src/main/java/io/bisq/core/network/SeedNodeAddresses.java index 41e09ae65d..2bd160d4c5 100644 --- a/core/src/main/java/io/bisq/core/network/SeedNodeAddresses.java +++ b/core/src/main/java/io/bisq/core/network/SeedNodeAddresses.java @@ -28,17 +28,6 @@ import java.util.stream.Collector; import java.util.stream.Collectors; class SeedNodeAddresses extends ImmutableSetDecorator { - public static SeedNodeAddresses fromString(String seedNodes) { - if (seedNodes.isEmpty()) { - return new SeedNodeAddresses(Collections.emptySet()); - } - - String trimmed = StringUtils.deleteWhitespace(seedNodes); - String[] nodes = trimmed.split(","); - return Arrays.stream(nodes) - .map(NodeAddress::new) - .collect(collector()); - } public SeedNodeAddresses(Set delegate) { super(delegate); @@ -62,4 +51,16 @@ class SeedNodeAddresses extends ImmutableSetDecorator { public static Collector collector() { return Collectors.collectingAndThen(Collectors.toSet(), SeedNodeAddresses::new); } + + public static SeedNodeAddresses fromString(String seedNodes) { + if (seedNodes.isEmpty()) { + return new SeedNodeAddresses(Collections.emptySet()); + } + + String trimmed = StringUtils.deleteWhitespace(seedNodes); + String[] nodes = trimmed.split(","); + return Arrays.stream(nodes) + .map(NodeAddress::new) + .collect(collector()); + } }