Skip to content

Commit

Permalink
refactor-strict-mode: remove unused tokener method getJSONArray()
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 0571d73 commit 51e673c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main/java/org/json/JSONTokener.java
Original file line number Diff line number Diff line change
Expand Up @@ -456,20 +456,6 @@ private JSONObject getJsonObject(JSONParserConfiguration jsonParserConfiguration
}
}

/**
* This method is used to get a JSONArray from the JSONTokener.
*
* @return A JSONArray which is the next value in the JSONTokener.
* @throws JSONException If the JSONArray depth is too large to process.
*/
private JSONArray getJsonArray() {
try {
return new JSONArray(this);
} catch (StackOverflowError e) {
throw new JSONException("JSON Array or Object depth too large to process.", e);
}
}

/**
* Get the next simple value from the JSON input. Simple values include strings (wrapped in single or double
* quotes), numbers, booleans, and null. This method is called when the next character is not '{' or '['.
Expand Down

0 comments on commit 51e673c

Please sign in to comment.