Skip to content

improve isValid evaluation#17

Merged
filiphr merged 1 commit intomapstruct:mainfrom
hduelme:improve-is-valid-evaluation
Feb 14, 2026
Merged

improve isValid evaluation#17
filiphr merged 1 commit intomapstruct:mainfrom
hduelme:improve-is-valid-evaluation

Conversation

@hduelme
Copy link
Contributor

@hduelme hduelme commented Feb 13, 2026

I improved the evaluation for isValid. If there are values to evaluate, I replace the ternary operator ? with just logic and &&. In addition if the value is just true, I inline it into isValid( ) directly (see BuilderGem).

@filiphr filiphr added the enhancement New feature or request label Feb 14, 2026
@filiphr filiphr added this to the 1.0.0.Alpha4 milestone Feb 14, 2026
@filiphr filiphr merged commit 34968a8 into mapstruct:main Feb 14, 2026
6 checks passed
@filiphr
Copy link
Member

filiphr commented Feb 14, 2026

Good improvement @hduelme. Thanks

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants