Skip to content

Commit f59bbfa

Browse files
eamonnmcmanuscopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 502719370
1 parent f2110cd commit f59bbfa

File tree

1 file changed

+8
-0
lines changed
  • src/com/google/javascript/jscomp/j2clbuild/super/com/google/gson/stream

1 file changed

+8
-0
lines changed

src/com/google/javascript/jscomp/j2clbuild/super/com/google/gson/stream/JsonWriter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.google.gson.stream;
1818

19+
import com.google.errorprone.annotations.CanIgnoreReturnValue;
1920
import java.io.IOException;
2021

2122
/**
@@ -29,33 +30,40 @@ public abstract class JsonWriter {
2930
* Begins encoding a new array. Each call to this method must be paired with a call to {@link
3031
* #endArray}.
3132
*/
33+
@CanIgnoreReturnValue
3234
public abstract JsonWriter beginArray() throws IOException;
3335

3436
/** Ends encoding the current array. */
37+
@CanIgnoreReturnValue
3538
public abstract JsonWriter endArray() throws IOException;
3639

3740
/**
3841
* Begins encoding a new object. Each call to this method must be paired with a call to {@link
3942
* #endObject}.
4043
*/
44+
@CanIgnoreReturnValue
4145
public abstract JsonWriter beginObject() throws IOException;
4246

4347
/** Ends encoding the current object. */
48+
@CanIgnoreReturnValue
4449
public abstract JsonWriter endObject() throws IOException;
4550

4651
/**
4752
* Encodes the property name.
4853
*
4954
* @param name the name of the forthcoming value. May not be null.
5055
*/
56+
@CanIgnoreReturnValue
5157
public abstract JsonWriter name(String name) throws IOException;
5258

5359
/** Encodes a number. */
60+
@CanIgnoreReturnValue
5461
public abstract JsonWriter value(Number n) throws IOException;
5562

5663
/**
5764
* Encodes a string, escaping it according to RFC 4627 as well as for HTML ({@code <} and {@code
5865
* >} for example).
5966
*/
67+
@CanIgnoreReturnValue
6068
public abstract JsonWriter value(String s) throws IOException;
6169
}

0 commit comments

Comments
 (0)