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
commit aa93d6be275f3e26079ae07253a32ff053f1a20a Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Wed Aug 27 15:38:29 2025 -0400 Add @SuppressWarnings --- src/main/java/org/apache/commons/io/IOUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/apache/commons/io/IOUtils.java b/src/main/java/org/apache/commons/io/IOUtils.java index cd8d042a9..334b24fda 100644 --- a/src/main/java/org/apache/commons/io/IOUtils.java +++ b/src/main/java/org/apache/commons/io/IOUtils.java @@ -2669,6 +2669,7 @@ public static byte[] toByteArray(final InputStream inputStream) throws IOExcepti * @throws IllegalArgumentException if {@code size} is less than zero. * @since 2.1 */ + @SuppressWarnings("resource") public static byte[] toByteArray(final InputStream input, final int size) throws IOException { if (size == 0) { return EMPTY_BYTE_ARRAY;