(char c)
| 892 | } |
| 893 | |
| 894 | @SuppressWarnings("fallthrough") |
| 895 | private boolean isLiteral(char c) throws IOException { |
| 896 | switch (c) { |
| 897 | case '/': |
| 898 | case '\\': |
| 899 | case ';': |
| 900 | case '#': |
| 901 | case '=': |
| 902 | checkLenient(); // fall-through |
| 903 | case '{': |
| 904 | case '}': |
| 905 | case '[': |
| 906 | case ']': |
| 907 | case ':': |
| 908 | case ',': |
| 909 | case ' ': |
| 910 | case '\t': |
| 911 | case '\f': |
| 912 | case '\r': |
| 913 | case '\n': |
| 914 | return false; |
| 915 | default: |
| 916 | return true; |
| 917 | } |
| 918 | } |
| 919 | |
| 920 | /** |
| 921 | * Returns the next token, a {@link JsonToken#NAME property name}, and consumes it. |
no test coverage detected