MCPcopy
hub / github.com/google/gson / open

Method open

src/main/java/com/google/gson/stream/JsonWriter.java:262–267  ·  view source on GitHub ↗

Enters a new scope by appending any necessary whitespace and the given bracket.

(JsonScope empty, String openBracket)

Source from the content-addressed store, hash-verified

260 * bracket.
261 */
262 private JsonWriter open(JsonScope empty, String openBracket) throws IOException {
263 beforeValue(true);
264 stack.add(empty);
265 out.write(openBracket);
266 return this;
267 }
268
269 /**
270 * Closes the current scope by appending any necessary whitespace and the

Callers 2

beginArrayMethod · 0.95
beginObjectMethod · 0.95

Calls 3

beforeValueMethod · 0.95
addMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected