mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
@@ -187,11 +187,7 @@ 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 = Okio.buffer(sink);
|
||||||
this.sink = (BufferedSink) sink;
|
|
||||||
} else {
|
|
||||||
this.sink = Okio.buffer(sink);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user