Test for whitespace, checking the JSON whitespace characters (RFC 8259 §2) directly before consulting Character#isWhitespace, whose table lookups are measurably slower and which is retained only to stay lenient about exotic whitespace between tokens.
(char c)
| 192 | * is retained only to stay lenient about exotic whitespace between tokens. |
| 193 | */ |
| 194 | private static boolean isWhitespace(char c) { |
| 195 | if (c == ' ' || c == '\n' || c == '\t' || c == '\r') { |
| 196 | return true; |
| 197 | } |
| 198 | return Character.isWhitespace(c); |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * Consume ASCII digits, appending them to the supplied builder in bulk. Stops before the first |
no outgoing calls
no test coverage detected