Fixing fromJson type casting.

This commit is contained in:
Joel Leitch 2010-11-11 18:22:45 +00:00
parent 54ba11210f
commit 7d055fcb51

View File

@ -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;
}