mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 07:59:21 +08:00
@@ -187,12 +187,8 @@ public class JsonWriter implements Closeable, Flushable {
|
|||||||
if (sink == null) {
|
if (sink == null) {
|
||||||
throw new NullPointerException("sink == null");
|
throw new NullPointerException("sink == null");
|
||||||
}
|
}
|
||||||
if (sink instanceof BufferedSink) {
|
|
||||||
this.sink = (BufferedSink) sink;
|
|
||||||
} else {
|
|
||||||
this.sink = Okio.buffer(sink);
|
this.sink = Okio.buffer(sink);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the indentation string to be repeated for each level of indentation
|
* Sets the indentation string to be repeated for each level of indentation
|
||||||
|
Reference in New Issue
Block a user