MCPcopy Create free account
hub / github.com/apache/tomcat / getPopularChar

Method getPopularChar

java/org/apache/tomcat/util/json/JSONFilter.java:129–139  ·  view source on GitHub ↗
(char c)

Source from the content-addressed store, hash-verified

127 }
128
129 private static char getPopularChar(char c) {
130 return switch (c) {
131 case '"', '\\' -> c;
132 case 0x8 -> 'b';
133 case 0xc -> 'f';
134 case 0xa -> 'n';
135 case 0xd -> 'r';
136 case 0x9 -> 't';
137 default -> 0;
138 };
139 }
140}

Callers 1

escapeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected