Closes gh-11724
This commit is contained in:
dreis2211
2018-01-22 20:20:30 +01:00
committed by Phillip Webb
parent 66d5c03c39
commit b7e663e820

View File

@@ -279,7 +279,7 @@ public class JSONTokener {
private Object readLiteral() throws JSONException {
String literal = nextToInternal("{}[]/\\:,=;# \t\f");
if (literal.length() == 0) {
if (literal.isEmpty()) {
throw syntaxError("Expected literal value");
}
else if ("null".equalsIgnoreCase(literal)) {