You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/07/30 19:21:54 UTC
[commons-io] branch master updated: Add
@SuppressWarnings("resource") for Fluent APIs.
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 25a39e4 Add @SuppressWarnings("resource") for Fluent APIs.
25a39e4 is described below
commit 25a39e4ce66e67b061463a50d39ff82d7df98881
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jul 30 15:21:50 2021 -0400
Add @SuppressWarnings("resource") for Fluent APIs.
---
src/main/java/org/apache/commons/io/output/ProxyCollectionWriter.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/main/java/org/apache/commons/io/output/ProxyCollectionWriter.java b/src/main/java/org/apache/commons/io/output/ProxyCollectionWriter.java
index 91fab36..0a4c037 100644
--- a/src/main/java/org/apache/commons/io/output/ProxyCollectionWriter.java
+++ b/src/main/java/org/apache/commons/io/output/ProxyCollectionWriter.java
@@ -77,6 +77,7 @@ public class ProxyCollectionWriter extends FilterCollectionWriter {
* @throws IOException if an I/O error occurs.
* @since 2.0
*/
+ @SuppressWarnings("resource") // Fluent API.
@Override
public Writer append(final char c) throws IOException {
try {
@@ -96,6 +97,7 @@ public class ProxyCollectionWriter extends FilterCollectionWriter {
* @return this writer
* @throws IOException if an I/O error occurs.
*/
+ @SuppressWarnings("resource") // Fluent API.
@Override
public Writer append(final CharSequence csq) throws IOException {
try {
@@ -118,6 +120,7 @@ public class ProxyCollectionWriter extends FilterCollectionWriter {
* @return this writer
* @throws IOException if an I/O error occurs.
*/
+ @SuppressWarnings("resource") // Fluent API.
@Override
public Writer append(final CharSequence csq, final int start, final int end) throws IOException {
try {