This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new f026f9569 Remove @SuppressWarnings f026f9569 is described below commit f026f956941a56aa4481d79feb083f44b9fc7d74 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri May 24 10:22:33 2024 -0400 Remove @SuppressWarnings --- src/main/java/org/apache/commons/io/function/IOStream.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/org/apache/commons/io/function/IOStream.java b/src/main/java/org/apache/commons/io/function/IOStream.java index 99065f62a..94d3d7e7a 100644 --- a/src/main/java/org/apache/commons/io/function/IOStream.java +++ b/src/main/java/org/apache/commons/io/function/IOStream.java @@ -116,7 +116,6 @@ public interface IOStream<T> extends IOBaseStream<T, IOStream<T>, Stream<T>> { * @param values the elements of the new stream, may be {@code null}. * @return the new stream on {@code values} or {@link Stream#empty()}. */ - @SuppressWarnings("resource") // call to #empty() static <T> IOStream<T> of(final Iterable<T> values) { return values == null ? empty() : adapt(StreamSupport.stream(values.spliterator(), false)); } @@ -128,7 +127,6 @@ public interface IOStream<T> extends IOBaseStream<T, IOStream<T>, Stream<T>> { * @param values the elements of the new stream, may be {@code null}. * @return the new stream on {@code values} or {@link Stream#empty()}. */ - @SuppressWarnings("resource") @SafeVarargs // Creating a stream from an array is safe static <T> IOStream<T> of(final T... values) { return values == null || values.length == 0 ? empty() : adapt(Arrays.stream(values));