File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
google-http-client-gson/src/main/java/com/google/api/client/json/gson Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1818import com .google .api .client .json .JsonGenerator ;
1919import com .google .api .client .json .JsonParser ;
2020import com .google .api .client .util .Beta ;
21- import com .google .api .client .util .Charsets ;
2221import com .google .gson .stream .JsonReader ;
2322import com .google .gson .stream .JsonWriter ;
2423import java .io .InputStream ;
2928import java .io .StringReader ;
3029import java .io .Writer ;
3130import java .nio .charset .Charset ;
31+ import java .nio .charset .StandardCharsets ;
3232
3333/**
3434 * Low-level JSON library implementation based on GSON.
@@ -60,9 +60,7 @@ static class InstanceHolder {
6060
6161 @ Override
6262 public JsonParser createJsonParser (InputStream in ) {
63- // TODO(mlinder): Parser should try to detect the charset automatically when using GSON
64- // https://github.com/googleapis/google-http-java-client/issues/6
65- return createJsonParser (new InputStreamReader (in , Charsets .UTF_8 ));
63+ return createJsonParser (new InputStreamReader (in , StandardCharsets .UTF_8 ));
6664 }
6765
6866 @ Override
You can’t perform that action at this time.
0 commit comments