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 87f73e8ea Add @SuppressWarnings array element 87f73e8ea is described below commit 87f73e8ea0a33110b614d352fd330c7fbdddfa43 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri May 24 10:25:25 2024 -0400 Add @SuppressWarnings array element --- src/main/java/org/apache/commons/io/function/IOStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 94d3d7e7a..87333016d 100644 --- a/src/main/java/org/apache/commons/io/function/IOStream.java +++ b/src/main/java/org/apache/commons/io/function/IOStream.java @@ -263,7 +263,7 @@ public interface IOStream<T> extends IOBaseStream<T, IOStream<T>, Stream<T>> { * @return Like {@link Stream#flatMap(java.util.function.Function)}. * @throws IOException if an I/O error occurs. */ - @SuppressWarnings("unused") // thrown by Erase. + @SuppressWarnings({ "unused", "resource" }) // thrown by Erase; resourcce closed by caller. default <R> IOStream<R> flatMap(final IOFunction<? super T, ? extends IOStream<? extends R>> mapper) throws IOException { return adapt(unwrap().flatMap(t -> Erase.apply(mapper, t).unwrap())); }