File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
src/java_tools/junitrunner/java/com/google/testing/junit/runner/util Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,19 @@ public final String escape(String s) {
5656 return s ;
5757 }
5858
59+ final char [] escape (char c ) {
60+ if (c < replacementsLength ) {
61+ char [] chars = replacements [c ];
62+ if (chars != null ) {
63+ return chars ;
64+ }
65+ }
66+ if (c >= safeMin && c <= safeMax ) {
67+ return null ;
68+ }
69+ return escapeUnsafe (c );
70+ }
71+
5972 /**
6073 * A thread-local destination buffer to keep us from creating new buffers. The starting size is
6174 * 1024 characters.
@@ -139,19 +152,6 @@ final String escapeSlow(String s, int index) {
139152 return new String (dest , 0 , destIndex );
140153 }
141154
142- final char [] escape (char c ) {
143- if (c < replacementsLength ) {
144- char [] chars = replacements [c ];
145- if (chars != null ) {
146- return chars ;
147- }
148- }
149- if (c >= safeMin && c <= safeMax ) {
150- return null ;
151- }
152- return escapeUnsafe (c );
153- }
154-
155155 abstract char [] escapeUnsafe (char c );
156156
157157 /**
You can’t perform that action at this time.
0 commit comments