MCPcopy Create free account
hub / github.com/MCBans/MCBans / push

Method push

src/main/java/com/mcbans/plugin/org/json/JSONWriter.java:271–278  ·  view source on GitHub ↗

Push an array or object scope. @param c The scope to open. @throws JSONException If nesting is too deep.

(JSONObject jo)

Source from the content-addressed store, hash-verified

269 * @throws JSONException If nesting is too deep.
270 */
271 private void push(JSONObject jo) throws JSONException {
272 if (this.top >= maxdepth) {
273 throw new JSONException("Nesting too deep.");
274 }
275 this.stack[this.top] = jo;
276 this.mode = jo == null ? 'a' : 'k';
277 this.top += 1;
278 }
279
280
281 /**

Callers 2

arrayMethod · 0.95
objectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected