JSON deserialization of collections fixed

This commit is contained in:
Maxim Gorbunkov 2016-07-07 15:36:14 +04:00
parent db0a8479c1
commit 4e391584c0

View File

@ -107,7 +107,7 @@ public class EntitySerialization implements EntitySerializationAPI {
@Nullable MetaClass metaClass,
EntitySerializationOption... options) {
context.remove();
Type collectionType = new TypeToken<Collection<T>>(){}.getType();
Type collectionType = new TypeToken<Collection<Entity>>(){}.getType();
return createGsonForDeserialization(metaClass, options).fromJson(json, collectionType);
}