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 369a34771 Add @SuppressWarnings("resource") 369a34771 is described below commit 369a3477139df6263914b7e8cc452f8ec166141f Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Mon May 12 13:02:08 2025 -0400 Add @SuppressWarnings("resource") --- .../java/org/apache/commons/io/input/RandomAccessFileInputStream.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/apache/commons/io/input/RandomAccessFileInputStream.java b/src/main/java/org/apache/commons/io/input/RandomAccessFileInputStream.java index ce2646843..5f045cca1 100644 --- a/src/main/java/org/apache/commons/io/input/RandomAccessFileInputStream.java +++ b/src/main/java/org/apache/commons/io/input/RandomAccessFileInputStream.java @@ -90,6 +90,7 @@ public Builder() { * @see AbstractOrigin#getFile() * @see #getUnchecked() */ + @SuppressWarnings("resource") // caller closes @Override public RandomAccessFileInputStream get() throws IOException { return new RandomAccessFileInputStream(getRandomAccessFile(), propagateClose);