Skip to content

Remove unnecessary keySet() invocation - #3989

Merged
filiphr merged 1 commit into
mapstruct:mainfrom
hduelme:Remove-unnecessary-keySet()-invocation
Feb 2, 2026
Merged

filiphr merged 1 commit into
mapstruct:mainfrom
hduelme:Remove-unnecessary-keySet()-invocation

Conversation

@hduelme

@hduelme hduelme commented Feb 1, 2026

Copy link
Copy Markdown
Contributor

The size of the keySet is always equal to the size of the map, so the call to keySet() can be skipped.

@filiphr filiphr added this to the 1.7.0.Beta2 milestone Feb 2, 2026
@filiphr
filiphr merged commit 06e27d5 into mapstruct:main Feb 2, 2026
5 checks passed
@filiphr

filiphr commented Feb 2, 2026

Copy link
Copy Markdown
Member

Thanks @hduelme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants