This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 4d293d12c5 Cleanup 4d293d12c5 is described below commit 4d293d12c5513aaa5cc9fe429187bdb1a27557e8 Author: remm <r...@apache.org> AuthorDate: Thu Mar 2 15:35:46 2023 +0100 Cleanup Thanks Mark. --- java/org/apache/tomcat/util/json/JSONFilter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/org/apache/tomcat/util/json/JSONFilter.java b/java/org/apache/tomcat/util/json/JSONFilter.java index fe771b55cd..fa04275eb4 100644 --- a/java/org/apache/tomcat/util/json/JSONFilter.java +++ b/java/org/apache/tomcat/util/json/JSONFilter.java @@ -52,7 +52,7 @@ public class JSONFilter { * @return the escaped string */ public static String escape(String input) { - return escape((CharSequence) input, 0, input.length()).toString(); + return escape(input, 0, input.length()).toString(); } /** @@ -77,7 +77,6 @@ public class JSONFilter { * characters), U+0022 (quotation mark) and U+005C (reverse solidus) * MUST be escaped. */ - //char[] chars = input.toCharArray(); StringBuilder escaped = null; int lastUnescapedStart = off; for (int i = off; i < length; i++) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org