DATAREST-935 - Prepare 3.0 development.
Upgraded version numbers and dependencies to Spring Data build parent, Commons and store modules. Fixed a compiler issue in DomainObjectReader.
This commit is contained in:
@@ -285,8 +285,9 @@ public class DomainObjectReader {
|
||||
} else if (child instanceof ArrayNode && sourceValue != null) {
|
||||
handleArrayNode((ArrayNode) child, asCollection(sourceValue), mapper);
|
||||
} else {
|
||||
source.put(entry.getKey(),
|
||||
mapper.treeToValue(child, sourceValue == null ? Object.class : sourceValue.getClass()));
|
||||
|
||||
Class<?> target = sourceValue == null ? Object.class : sourceValue.getClass();
|
||||
source.put(entry.getKey(), mapper.treeToValue(child, target));
|
||||
}
|
||||
|
||||
fields.remove();
|
||||
|
||||
Reference in New Issue
Block a user