Skip to content

fix: respect NullValuePropertyMappingStrategy.IGNORE for collections without setters#3866

Merged
filiphr merged 3 commits intomapstruct:mainfrom
tangyang9464:fix/3806
May 31, 2025
Merged

fix: respect NullValuePropertyMappingStrategy.IGNORE for collections without setters#3866
filiphr merged 3 commits intomapstruct:mainfrom
tangyang9464:fix/3806

Conversation

@tangyang9464
Copy link
Contributor

fix: #3806

Copy link
Member

@filiphr filiphr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I had some questions through while reviewing this.

Signed-off-by: TangYang <[email protected]>
@tangyang9464
Copy link
Contributor Author

@filiphr Improved some tests. plz review again.

Copy link
Member

@filiphr filiphr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tangyang9464. I did a small polish and I also adjusted the test case a bit, since it wasn't failing if I removed your changes.

@filiphr filiphr merged commit 8fc97f5 into mapstruct:main May 31, 2025
7 checks passed
@tangyang9464 tangyang9464 deleted the fix/3806 branch June 1, 2025 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NullValuePropertyMappingStrategy#IGNORE is not properly applied on maps / collections without setters

2 participants