mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Merge pull request #126 from square/jw/override
Missing @Override annotations.
This commit is contained in:
@@ -309,7 +309,7 @@ final class BufferedSinkJsonWriter extends JsonWriter {
|
|||||||
* Ensures all buffered data is written to the underlying {@link Sink}
|
* Ensures all buffered data is written to the underlying {@link Sink}
|
||||||
* and flushes that writer.
|
* and flushes that writer.
|
||||||
*/
|
*/
|
||||||
public void flush() throws IOException {
|
@Override public void flush() throws IOException {
|
||||||
if (stackSize == 0) {
|
if (stackSize == 0) {
|
||||||
throw new IllegalStateException("JsonWriter is closed.");
|
throw new IllegalStateException("JsonWriter is closed.");
|
||||||
}
|
}
|
||||||
@@ -321,7 +321,7 @@ final class BufferedSinkJsonWriter extends JsonWriter {
|
|||||||
*
|
*
|
||||||
* @throws JsonDataException if the JSON document is incomplete.
|
* @throws JsonDataException if the JSON document is incomplete.
|
||||||
*/
|
*/
|
||||||
public void close() throws IOException {
|
@Override public void close() throws IOException {
|
||||||
sink.close();
|
sink.close();
|
||||||
|
|
||||||
int size = stackSize;
|
int size = stackSize;
|
||||||
|
Reference in New Issue
Block a user