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

Method writerForAppendable

src/main/java/com/google/gson/Streams.java:145–147  ·  view source on GitHub ↗
(Appendable appendable)

Source from the content-addressed store, hash-verified

143 }
144
145 static Writer writerForAppendable(Appendable appendable) {
146 return appendable instanceof Writer ? (Writer) appendable : new AppendableWriter(appendable);
147 }
148
149 /**
150 * Adapts an {@link Appendable} so it can be passed anywhere a {@link Writer}

Callers 1

toJsonMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected