Skip to content

Commit

Permalink
fix code size, for issue #2665
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxutao89 committed Jun 6, 2024
1 parent f985305 commit 20f38b6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,10 @@ public Object createInstance(Map input, long features) {
} else if ((typeConvert = provider.getTypeConvert(valueClass, valueType)) != null) {
value = typeConvert.apply(value);
} else if (value instanceof Map) {
Map map = (Map) value;
if (valueObjectReader == null) {
valueObjectReader = provider.getObjectReader(valueType);
}
value = valueObjectReader.createInstance(map, features);
value = valueObjectReader.createInstance((Map) value, features);
} else if (value instanceof Collection && !multiValue) {
if (valueObjectReader == null) {
valueObjectReader = provider.getObjectReader(valueType);
Expand Down

0 comments on commit 20f38b6

Please sign in to comment.