Add @SuppressWarnings
This commit is contained in:
parent
30428e5f99
commit
b5e6e213e3
|
@ -92,6 +92,7 @@ public abstract class CharSequenceTranslator {
|
||||||
* @param writer Writer to translate the text to
|
* @param writer Writer to translate the text to
|
||||||
* @throws IOException if and only if the Writer produces an IOException
|
* @throws IOException if and only if the Writer produces an IOException
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("resource") // Caller closes writer
|
||||||
public final void translate(final CharSequence input, final Writer writer) throws IOException {
|
public final void translate(final CharSequence input, final Writer writer) throws IOException {
|
||||||
Objects.requireNonNull(writer, "writer");
|
Objects.requireNonNull(writer, "writer");
|
||||||
if (input == null) {
|
if (input == null) {
|
||||||
|
|
Loading…
Reference in New Issue