mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Merge pull request #737 from square/eric.CheckReturnValue-writer
Add CheckReturnValue annotation to beginFlatten.
This commit is contained in:
@@ -445,7 +445,7 @@ public abstract class JsonWriter implements Closeable, Flushable {
|
||||
* <p>This method returns an opaque token. Callers must match all calls to this method with a call
|
||||
* to {@link #endFlatten} with the matching token.
|
||||
*/
|
||||
public final int beginFlatten() {
|
||||
@CheckReturnValue public final int beginFlatten() {
|
||||
int context = peekScope();
|
||||
if (context != NONEMPTY_OBJECT && context != EMPTY_OBJECT
|
||||
&& context != NONEMPTY_ARRAY && context != EMPTY_ARRAY) {
|
||||
|
Reference in New Issue
Block a user