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) {
|
||||
throw new NullPointerException("sink == null");
|
||||
}
|
||||
if (sink instanceof BufferedSink) {
|
||||
this.sink = (BufferedSink) sink;
|
||||
} else {
|
||||
this.sink = Okio.buffer(sink);
|
||||
}
|
||||
this.sink = Okio.buffer(sink);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user