Fixing fromJson type casting.
This commit is contained in:
parent
54ba11210f
commit
7d055fcb51
@ -482,7 +482,7 @@ public final class Gson {
|
||||
*/
|
||||
public <T> T fromJson(Reader json, Type typeOfT) throws JsonIOException, JsonSyntaxException {
|
||||
JsonReader jsonReader = new JsonReader(json);
|
||||
T object = fromJson(jsonReader, typeOfT);
|
||||
T object = this.<T>fromJson(jsonReader, typeOfT);
|
||||
assertFullConsumption(object, jsonReader);
|
||||
return object;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user