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 73bd880 Add @SuppressWarnings. 73bd880 is described below commit 73bd880e9aadeff507b068f67408a0e1b76d1f48 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Dec 3 08:55:28 2021 -0500 Add @SuppressWarnings. --- src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java b/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java index 843d4c8..e438dfb 100644 --- a/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java +++ b/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java @@ -104,6 +104,7 @@ public class FileWriterWithEncoding extends ProxyWriter { * @throws NullPointerException if the file is null. * @throws IOException in case of an I/O error. */ + @SuppressWarnings("resource") // Call site is responsible for closing a new instance. public FileWriterWithEncoding(final File file, final Charset encoding, final boolean append) throws IOException { super(initWriter(file, encoding, append)); } @@ -129,6 +130,7 @@ public class FileWriterWithEncoding extends ProxyWriter { * @throws NullPointerException if the file is null. * @throws IOException in case of an I/O error. */ + @SuppressWarnings("resource") // Call site is responsible for closing a new instance. public FileWriterWithEncoding(final File file, final CharsetEncoder charsetEncoder, final boolean append) throws IOException { super(initWriter(file, charsetEncoder, append)); } @@ -154,6 +156,7 @@ public class FileWriterWithEncoding extends ProxyWriter { * @throws NullPointerException if the file is null. * @throws IOException in case of an I/O error. */ + @SuppressWarnings("resource") // Call site is responsible for closing a new instance. public FileWriterWithEncoding(final File file, final String charsetName, final boolean append) throws IOException { super(initWriter(file, charsetName, append)); }