Skip to content

Commit 25a39e4

Browse files
author
Gary Gregory
committed
Add @SuppressWarnings("resource") for Fluent APIs.
1 parent b1d167f commit 25a39e4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/org/apache/commons/io/output/ProxyCollectionWriter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ protected void afterWrite(final int n) throws IOException {
7777
* @throws IOException if an I/O error occurs.
7878
* @since 2.0
7979
*/
80+
@SuppressWarnings("resource") // Fluent API.
8081
@Override
8182
public Writer append(final char c) throws IOException {
8283
try {
@@ -96,6 +97,7 @@ public Writer append(final char c) throws IOException {
9697
* @return this writer
9798
* @throws IOException if an I/O error occurs.
9899
*/
100+
@SuppressWarnings("resource") // Fluent API.
99101
@Override
100102
public Writer append(final CharSequence csq) throws IOException {
101103
try {
@@ -118,6 +120,7 @@ public Writer append(final CharSequence csq) throws IOException {
118120
* @return this writer
119121
* @throws IOException if an I/O error occurs.
120122
*/
123+
@SuppressWarnings("resource") // Fluent API.
121124
@Override
122125
public Writer append(final CharSequence csq, final int start, final int end) throws IOException {
123126
try {

0 commit comments

Comments
 (0)