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

markt-asf 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 e755184eac Remove unreachable code
e755184eac is described below

commit e755184eacb3bf6f2735247efdd6806645efafd3
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