Skip to content

Commit 06e27d5

Browse files
authored
Remove unnecessary keySet() invocation (#3989)
1 parent 5cf1a98 commit 06e27d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

processor/src/main/java/org/mapstruct/ap/internal/model/NestedTargetPropertyMappingHolder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ public NestedTargetPropertyMappingHolder build() {
151151
entryByTP.getValue(),
152152
groupedByTP.singleTargetReferences.get( targetProperty )
153153
);
154-
boolean multipleSourceParametersForTP =
155-
groupedBySourceParam.groupedBySourceParameter.keySet().size() > 1;
154+
boolean multipleSourceParametersForTP = groupedBySourceParam.groupedBySourceParameter.size() > 1;
156155

157156
// All not processed mappings that should have been applied to all are part of the unprocessed
158157
// defined targets

0 commit comments

Comments
 (0)