File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
google-http-client/src/main/java/com/google/api/client/json Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 22
22
import com .google .api .client .util .Preconditions ;
23
23
import com .google .api .client .util .Types ;
24
24
25
+ import java .io .Closeable ;
26
+ import java .io .Flushable ;
25
27
import java .io .IOException ;
26
28
import java .lang .reflect .Field ;
27
29
import java .math .BigDecimal ;
39
41
* @since 1.3
40
42
* @author Yaniv Inbar
41
43
*/
42
- public abstract class JsonGenerator {
44
+ public abstract class JsonGenerator implements Closeable , Flushable {
43
45
44
46
/** Returns the JSON factory from which this generator was created. */
45
47
public abstract JsonFactory getFactory ();
Original file line number Diff line number Diff line change 24
24
import com .google .api .client .util .Sets ;
25
25
import com .google .api .client .util .Types ;
26
26
27
+ import java .io .Closeable ;
27
28
import java .io .IOException ;
28
29
import java .lang .reflect .Field ;
29
30
import java .lang .reflect .Modifier ;
60
61
* @since 1.3
61
62
* @author Yaniv Inbar
62
63
*/
63
- public abstract class JsonParser {
64
+ public abstract class JsonParser implements Closeable {
64
65
65
66
/**
66
67
* Maps a polymorphic {@link Class} to its {@link Field} with the {@link JsonPolymorphicTypeMap}
You can’t perform that action at this time.
0 commit comments