MCPcopy Index your code
hub / github.com/google/gson / replaceTop

Method replaceTop

src/main/java/com/google/gson/stream/JsonReader.java:664–666  ·  view source on GitHub ↗

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

(JsonScope newTop)

Source from the content-addressed store, hash-verified

662 * Replace the value on the top of the stack with the given value.
663 */
664 private void replaceTop(JsonScope newTop) {
665 stack.set(stack.size() - 1, newTop);
666 }
667
668 @SuppressWarnings("fallthrough")
669 private JsonToken nextInArray(boolean firstElement) throws IOException {

Callers 4

quickPeekMethod · 0.95
nextInArrayMethod · 0.95
nextInObjectMethod · 0.95
objectValueMethod · 0.95

Calls 2

setMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected