aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGary Gregory <garydgregory@gmail.com>2023-01-19 07:46:55 -0500
committerGary Gregory <garydgregory@gmail.com>2023-01-19 07:46:55 -0500
commit70d16028c81a8eca15093db794c51f00c97527f9 (patch)
treee453f8f1c9009a36f98172a98807ffc55bd0be7e /src
parent41b12cd04eb9fb47ff5d05a92aafc5a0c16a1ad5 (diff)
downloadapache-commons-io-70d16028c81a8eca15093db794c51f00c97527f9.tar.gz
Add @SuppressWarnings("resource") // no allocation
Javadoc tweaks
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/apache/commons/io/output/FilterCollectionWriter.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/org/apache/commons/io/output/FilterCollectionWriter.java b/src/main/java/org/apache/commons/io/output/FilterCollectionWriter.java
index eadcff83..f6c0aa8e 100644
--- a/src/main/java/org/apache/commons/io/output/FilterCollectionWriter.java
+++ b/src/main/java/org/apache/commons/io/output/FilterCollectionWriter.java
@@ -89,6 +89,7 @@ public class FilterCollectionWriter extends Writer {
return forAllWriters(w -> w.append(csq, start, end));
}
+ @SuppressWarnings("resource") // no allocation
@Override
public void close() throws IOException {
forAllWriters(Writer::close);
@@ -99,6 +100,7 @@ public class FilterCollectionWriter extends Writer {
*
* @throws IOException If an I/O error occurs
*/
+ @SuppressWarnings("resource") // no allocation
@Override
public void flush() throws IOException {
forAllWriters(Writer::flush);
@@ -109,6 +111,7 @@ public class FilterCollectionWriter extends Writer {
return this;
}
+ @SuppressWarnings("resource") // no allocation
@Override
public void write(final char[] cbuf) throws IOException {
forAllWriters(w -> w.write(cbuf));
@@ -120,9 +123,9 @@ public class FilterCollectionWriter extends Writer {
* @param cbuf Buffer of characters to be written
* @param off Offset from which to start reading characters
* @param len Number of characters to be written
- *
* @throws IOException If an I/O error occurs
*/
+ @SuppressWarnings("resource") // no allocation
@Override
public void write(final char[] cbuf, final int off, final int len) throws IOException {
forAllWriters(w -> w.write(cbuf, off, len));
@@ -133,11 +136,13 @@ public class FilterCollectionWriter extends Writer {
*
* @throws IOException If an I/O error occurs
*/
+ @SuppressWarnings("resource") // no allocation
@Override
public void write(final int c) throws IOException {
forAllWriters(w -> w.write(c));
}
+ @SuppressWarnings("resource") // no allocation
@Override
public void write(final String str) throws IOException {
forAllWriters(w -> w.write(str));
@@ -149,9 +154,9 @@ public class FilterCollectionWriter extends Writer {
* @param str String to be written
* @param off Offset from which to start reading characters
* @param len Number of characters to be written
- *
* @throws IOException If an I/O error occurs
*/
+ @SuppressWarnings("resource") // no allocation
@Override
public void write(final String str, final int off, final int len) throws IOException {
forAllWriters(w -> w.write(str, off, len));