From ff88ac32f22e3edf7652f1c491277f996cb56024 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Fri, 12 Aug 2011 18:24:20 +0000 Subject: [PATCH] Use MiniGSON for deserialization. --- gson/src/main/java/com/google/gson/Gson.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java index 6399077e..f7437e3c 100644 --- a/gson/src/main/java/com/google/gson/Gson.java +++ b/gson/src/main/java/com/google/gson/Gson.java @@ -676,11 +676,7 @@ public final class Gson { if (json == null) { return null; } - JsonDeserializationContext context = new JsonDeserializationContext( - new ObjectNavigator(deserializationExclusionStrategy), fieldNamingPolicy, - deserializers, objectConstructor); - T target = (T) context.deserialize(json, typeOfT); - return target; + return (T) miniGson.getAdapter(TypeToken.get(typeOfT)).fromJsonElement(json); } @Override