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

Method replaceTop

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

Replace the value on the top of the stack with the given value.

(JsonScope topOfStack)

Source from the content-addressed store, hash-verified

296 * Replace the value on the top of the stack with the given value.
297 */
298 private void replaceTop(JsonScope topOfStack) {
299 stack.set(stack.size() - 1, topOfStack);
300 }
301
302 /**
303 * Encodes the property name.

Callers 2

beforeNameMethod · 0.95
beforeValueMethod · 0.95

Calls 2

setMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected