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

Method newline

gson/src/main/java/com/google/gson/stream/JsonWriter.java:775–784  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

773 }
774
775 private void newline() throws IOException {
776 if (usesEmptyNewlineAndIndent) {
777 return;
778 }
779
780 out.write(formattingStyle.getNewline());
781 for (int i = 1, size = stackSize; i < size; i++) {
782 out.write(formattingStyle.getIndent());
783 }
784 }
785
786 /**
787 * Inserts any necessary separators and whitespace before a name. Also adjusts the stack to expect

Callers 3

closeScopeMethod · 0.95
beforeNameMethod · 0.95
beforeValueMethod · 0.95

Calls 3

getNewlineMethod · 0.80
getIndentMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected