Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
dreis2211 authored and philwebb committed Jan 22, 2018
1 parent 66d5c03 commit b7e663e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ private char readEscapeCharacter() throws JSONException {
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)) {
Expand Down

0 comments on commit b7e663e

Please sign in to comment.