Skip to content

Commit

Permalink
refactor-strict-mode: remove unneeded call to confirmStrictModeEof()
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Leary authored and Sean Leary committed May 27, 2024
1 parent 51e673c commit 2896cbd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/org/json/JSONArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ private void throwErrorIfEoF() {
*/
public JSONArray(String source) throws JSONException {
this(new JSONTokener(source), new JSONParserConfiguration());
confirmStrictModeEof();
}

/**
Expand Down Expand Up @@ -326,7 +325,6 @@ private void confirmStrictModeEof() {
throw this.jsonTokener.syntaxError(getInvalidCharErrorMsg(c));
}
}

}

/**
Expand Down

0 comments on commit 2896cbd

Please sign in to comment.