Use MiniGSON for deserialization.

This commit is contained in:
Jesse Wilson 2011-08-12 18:24:20 +00:00
parent 70965eae03
commit ff88ac32f2

View File

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