This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new fc2256a6fa Remove unreachable code
fc2256a6fa is described below

commit fc2256a6fa783d4ecc0a42262e646047dcac992f
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]

Reply via email to