From 66f1534c7e41a7ea7bbf957afdac77f95015101f Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 13 Oct 2024 14:23:36 -0400 Subject: [PATCH] Add SubnetInfo.streamAddressStrings() --- .../java/org/apache/commons/net/util/SubnetUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/net/util/SubnetUtils.java b/src/main/java/org/apache/commons/net/util/SubnetUtils.java index 9856a2111..cd03bb66c 100644 --- a/src/main/java/org/apache/commons/net/util/SubnetUtils.java +++ b/src/main/java/org/apache/commons/net/util/SubnetUtils.java @@ -19,8 +19,8 @@ import java.util.Iterator; import java.util.regex.Matcher; import java.util.regex.Pattern; - -import org.apache.commons.io.function.IOStream; +import java.util.stream.Stream; +import java.util.stream.StreamSupport; /** * Performs subnet calculations given a network address and a subnet mask. @@ -303,8 +303,8 @@ private long networkLong() { * @see #iterableAddressStrings() * @since 3.12.0 */ - public IOStream streamAddressStrings() { - return IOStream.of(iterableAddressStrings()); + public Stream streamAddressStrings() { + return StreamSupport.stream(iterableAddressStrings().spliterator(), false); } /**