@@ -89,6 +89,7 @@ public Writer append(final CharSequence csq, final int start, final int end) thr
8989 return forAllWriters (w -> w .append (csq , start , end ));
9090 }
9191
92+ @ SuppressWarnings ("resource" ) // no allocation
9293 @ Override
9394 public void close () throws IOException {
9495 forAllWriters (Writer ::close );
@@ -99,6 +100,7 @@ public void close() throws IOException {
99100 *
100101 * @throws IOException If an I/O error occurs
101102 */
103+ @ SuppressWarnings ("resource" ) // no allocation
102104 @ Override
103105 public void flush () throws IOException {
104106 forAllWriters (Writer ::flush );
@@ -109,6 +111,7 @@ private FilterCollectionWriter forAllWriters(final IOConsumer<Writer> action) th
109111 return this ;
110112 }
111113
114+ @ SuppressWarnings ("resource" ) // no allocation
112115 @ Override
113116 public void write (final char [] cbuf ) throws IOException {
114117 forAllWriters (w -> w .write (cbuf ));
@@ -120,9 +123,9 @@ public void write(final char[] cbuf) throws IOException {
120123 * @param cbuf Buffer of characters to be written
121124 * @param off Offset from which to start reading characters
122125 * @param len Number of characters to be written
123- *
124126 * @throws IOException If an I/O error occurs
125127 */
128+ @ SuppressWarnings ("resource" ) // no allocation
126129 @ Override
127130 public void write (final char [] cbuf , final int off , final int len ) throws IOException {
128131 forAllWriters (w -> w .write (cbuf , off , len ));
@@ -133,11 +136,13 @@ public void write(final char[] cbuf, final int off, final int len) throws IOExce
133136 *
134137 * @throws IOException If an I/O error occurs
135138 */
139+ @ SuppressWarnings ("resource" ) // no allocation
136140 @ Override
137141 public void write (final int c ) throws IOException {
138142 forAllWriters (w -> w .write (c ));
139143 }
140144
145+ @ SuppressWarnings ("resource" ) // no allocation
141146 @ Override
142147 public void write (final String str ) throws IOException {
143148 forAllWriters (w -> w .write (str ));
@@ -149,9 +154,9 @@ public void write(final String str) throws IOException {
149154 * @param str String to be written
150155 * @param off Offset from which to start reading characters
151156 * @param len Number of characters to be written
152- *
153157 * @throws IOException If an I/O error occurs
154158 */
159+ @ SuppressWarnings ("resource" ) // no allocation
155160 @ Override
156161 public void write (final String str , final int off , final int len ) throws IOException {
157162 forAllWriters (w -> w .write (str , off , len ));
0 commit comments