File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/com/google/javascript/jscomp/j2clbuild/super/com/google/gson/stream Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package com .google .gson .stream ;
18
18
19
+ import com .google .errorprone .annotations .CanIgnoreReturnValue ;
19
20
import java .io .IOException ;
20
21
21
22
/**
@@ -29,33 +30,40 @@ public abstract class JsonWriter {
29
30
* Begins encoding a new array. Each call to this method must be paired with a call to {@link
30
31
* #endArray}.
31
32
*/
33
+ @ CanIgnoreReturnValue
32
34
public abstract JsonWriter beginArray () throws IOException ;
33
35
34
36
/** Ends encoding the current array. */
37
+ @ CanIgnoreReturnValue
35
38
public abstract JsonWriter endArray () throws IOException ;
36
39
37
40
/**
38
41
* Begins encoding a new object. Each call to this method must be paired with a call to {@link
39
42
* #endObject}.
40
43
*/
44
+ @ CanIgnoreReturnValue
41
45
public abstract JsonWriter beginObject () throws IOException ;
42
46
43
47
/** Ends encoding the current object. */
48
+ @ CanIgnoreReturnValue
44
49
public abstract JsonWriter endObject () throws IOException ;
45
50
46
51
/**
47
52
* Encodes the property name.
48
53
*
49
54
* @param name the name of the forthcoming value. May not be null.
50
55
*/
56
+ @ CanIgnoreReturnValue
51
57
public abstract JsonWriter name (String name ) throws IOException ;
52
58
53
59
/** Encodes a number. */
60
+ @ CanIgnoreReturnValue
54
61
public abstract JsonWriter value (Number n ) throws IOException ;
55
62
56
63
/**
57
64
* Encodes a string, escaping it according to RFC 4627 as well as for HTML ({@code <} and {@code
58
65
* >} for example).
59
66
*/
67
+ @ CanIgnoreReturnValue
60
68
public abstract JsonWriter value (String s ) throws IOException ;
61
69
}
You can’t perform that action at this time.
0 commit comments