Merge pull request #126 from square/jw/override

Missing @Override annotations.
This commit is contained in:
Jesse Wilson
2016-01-21 16:46:26 -05:00

View File

@@ -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;