This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 56e911f225 Remove unreachable code
56e911f225 is described below
commit 56e911f2254713ffb5fbf5abc8c55dc7cd95bee7
Author: Mark Thomas <[email protected]>
AuthorDate: Fri May 22 17:10:32 2026 +0100
Remove unreachable code
---
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 4f9c527d33..1e3735a648 100644
--- a/java/org/apache/tomcat/util/json/JSONFilter.java
+++ b/java/org/apache/tomcat/util/json/JSONFilter.java
@@ -124,7 +124,7 @@ public class JSONFilter {
private static char getPopularChar(char c) {
return switch (c) {
- case '"', '\\', '/' -> c;
+ case '"', '\\' -> c;
case 0x8 -> 'b';
case 0xc -> 'f';
case 0xa -> 'n';
@@ -133,5 +133,4 @@ public class JSONFilter {
default -> 0;
};
}
-
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]