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 c91d0898d57e93121251ea0c2ddd34de58b3768c
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat May 13 10:06:38 2023 -0400

    Add @SuppressWarnings("resource")
---
 src/main/java/org/apache/commons/io/HexDump.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/commons/io/HexDump.java 
b/src/main/java/org/apache/commons/io/HexDump.java
index 9c32069c..d7e5abdc 100644
--- a/src/main/java/org/apache/commons/io/HexDump.java
+++ b/src/main/java/org/apache/commons/io/HexDump.java
@@ -185,6 +185,7 @@ public class HexDump {
      *         outside the data array's bounds
      * @throws NullPointerException if the output stream is null
      */
+    @SuppressWarnings("resource") // Caller closes stream
     public static void dump(final byte[] data, final long offset,
                             final OutputStream stream, final int index)
             throws IOException, ArrayIndexOutOfBoundsException {

Reply via email to