Commit 8903f049 authored by Phillip Webb's avatar Phillip Webb

Merge pull request #11724 from dreis2211

* pr/11724:
  Polish
parents 66d5c03c b7e663e8
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment