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

Method openScope

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

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

(int empty, char openBracket)

Source from the content-addressed store, hash-verified

443
444 /** Enters a new scope by appending any necessary whitespace and the given bracket. */
445 @CanIgnoreReturnValue
446 private JsonWriter openScope(int empty, char openBracket) throws IOException {
447 beforeValue();
448 push(empty);
449 out.write(openBracket);
450 return this;
451 }
452
453 /** Closes the current scope by appending any necessary whitespace and the given bracket. */
454 @CanIgnoreReturnValue

Callers 2

beginArrayMethod · 0.95
beginObjectMethod · 0.95

Calls 3

beforeValueMethod · 0.95
pushMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected