@@ -104,6 +104,7 @@ public FileWriterWithEncoding(final File file, final Charset charset) throws IOE
104104 * @throws NullPointerException if the file is null.
105105 * @throws IOException in case of an I/O error.
106106 */
107+ @ SuppressWarnings ("resource" ) // Call site is responsible for closing a new instance.
107108 public FileWriterWithEncoding (final File file , final Charset encoding , final boolean append ) throws IOException {
108109 super (initWriter (file , encoding , append ));
109110 }
@@ -129,6 +130,7 @@ public FileWriterWithEncoding(final File file, final CharsetEncoder charsetEncod
129130 * @throws NullPointerException if the file is null.
130131 * @throws IOException in case of an I/O error.
131132 */
133+ @ SuppressWarnings ("resource" ) // Call site is responsible for closing a new instance.
132134 public FileWriterWithEncoding (final File file , final CharsetEncoder charsetEncoder , final boolean append ) throws IOException {
133135 super (initWriter (file , charsetEncoder , append ));
134136 }
@@ -154,6 +156,7 @@ public FileWriterWithEncoding(final File file, final String charsetName) throws
154156 * @throws NullPointerException if the file is null.
155157 * @throws IOException in case of an I/O error.
156158 */
159+ @ SuppressWarnings ("resource" ) // Call site is responsible for closing a new instance.
157160 public FileWriterWithEncoding (final File file , final String charsetName , final boolean append ) throws IOException {
158161 super (initWriter (file , charsetName , append ));
159162 }
0 commit comments