Use MiniGSON for deserialization.
This commit is contained in:
parent
70965eae03
commit
ff88ac32f2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user