Consumes expected.
(JsonToken expected)
| 318 | * Consumes {@code expected}. |
| 319 | */ |
| 320 | private void expect(JsonToken expected) throws IOException { |
| 321 | quickPeek(); |
| 322 | if (token != expected) { |
| 323 | throw new IllegalStateException("Expected " + expected + " but was " + peek()); |
| 324 | } |
| 325 | advance(); |
| 326 | } |
| 327 | |
| 328 | /** |
| 329 | * Returns true if the current array or object has another element. |
no test coverage detected