From 7d055fcb517a25e3cf141a867ec2b53264c40a19 Mon Sep 17 00:00:00 2001 From: Joel Leitch Date: Thu, 11 Nov 2010 18:22:45 +0000 Subject: [PATCH] Fixing fromJson type casting. --- gson/src/main/java/com/google/gson/Gson.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java index cf2875d6..46baa47c 100644 --- a/gson/src/main/java/com/google/gson/Gson.java +++ b/gson/src/main/java/com/google/gson/Gson.java @@ -482,7 +482,7 @@ public final class Gson { */ public T fromJson(Reader json, Type typeOfT) throws JsonIOException, JsonSyntaxException { JsonReader jsonReader = new JsonReader(json); - T object = fromJson(jsonReader, typeOfT); + T object = this.fromJson(jsonReader, typeOfT); assertFullConsumption(object, jsonReader); return object; }