This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new af9d1afb2c Cleanup
af9d1afb2c is described below
commit af9d1afb2c617049c5dddab132a5496636665e42
Author: remm <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]