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

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


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

commit 099cffffa4afc5f39c5b78588aee994ad53db623
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 | 2 --
 1 file changed, 2 deletions(-)

diff --git a/java/org/apache/tomcat/util/json/JSONFilter.java 
b/java/org/apache/tomcat/util/json/JSONFilter.java
index bb965a022c..3d4aff5f11 100644
--- a/java/org/apache/tomcat/util/json/JSONFilter.java
+++ b/java/org/apache/tomcat/util/json/JSONFilter.java
@@ -126,7 +126,6 @@ public class JSONFilter {
         switch (c) {
             case '"':
             case '\\':
-            case '/':
                 return c;
             case 0x8:
                 return 'b';
@@ -142,5 +141,4 @@ public class JSONFilter {
                 return 0;
         }
     }
-
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to