Skip to content

Commit

Permalink
Remove unnecessary subobjects flag in buildMergedMappers
Browse files Browse the repository at this point in the history
this sneaked in while resolving merge conflicts
  • Loading branch information
felixbarny committed Apr 9, 2024
1 parent ea535da commit b049ca9
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -515,7 +515,7 @@ static MergeResult build(ObjectMapper existing, ObjectMapper mergeWithObject, Ma
subObjects = existing.subobjects;
}
MapperMergeContext objectMergeContext = existing.createChildContext(parentMergeContext, existing.simpleName());
Map<String, Mapper> mergedMappers = buildMergedMappers(existing, mergeWithObject, objectMergeContext, subObjects.value());
Map<String, Mapper> mergedMappers = buildMergedMappers(existing, mergeWithObject, objectMergeContext);
return new MergeResult(
enabled,
subObjects,
Expand All @@ -527,8 +527,7 @@ static MergeResult build(ObjectMapper existing, ObjectMapper mergeWithObject, Ma
private static Map<String, Mapper> buildMergedMappers(
ObjectMapper existing,
ObjectMapper mergeWithObject,
MapperMergeContext objectMergeContext,
boolean subobjects
MapperMergeContext objectMergeContext
) {
Iterator<Mapper> iterator = mergeWithObject.iterator();
if (iterator.hasNext() == false) {
Expand Down

0 comments on commit b049ca9

Please sign in to comment.