From b5e6e213e3b06406b944a335b3951b05a755dce8 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 23 May 2024 09:25:39 -0400 Subject: [PATCH] Add @SuppressWarnings --- .../commons/lang3/text/translate/CharSequenceTranslator.java | 1 + 1 file changed, 1 insertion(+) 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) {