diff --git a/src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java b/src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java index 677c0e1b3..8dbff38b5 100644 --- a/src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java +++ b/src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java @@ -92,6 +92,7 @@ public abstract class CharSequenceTranslator { * @param writer Writer to translate the text to * @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 { Objects.requireNonNull(writer, "writer"); if (input == null) {