PL-7995 JSON entity deserialization doesn't work with EntitySerializationOption.COMPACT_REPEATED_ENTITIES

This commit is contained in:
Maxim Gorbunkov 2016-10-11 19:26:20 +04:00
parent 95dde7542c
commit 6768621285

View File

@ -390,7 +390,14 @@ public class EntitySerialization implements EntitySerializationAPI {
}
}
Map<Object, Entity> processedEntities = context.get().getProcessedEntities();
Entity processedEntity = processedEntities.get(entity.getId());
if (processedEntity != null) {
entity = processedEntity;
} else {
processedEntities.put(entity.getId(), entity);
readFields(jsonObject, entity);
}
return entity;
}