Merge pull request #11724 from dreis2211

* pr/11724:
  Polish
This commit is contained in:
Phillip Webb 2018-01-22 16:00:40 -08:00
commit 8903f04990
1 changed files with 1 additions and 1 deletions

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)) {