Skip to content

Getters can be computed twice when nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS #4030

@altaiezior

Description

@altaiezior

Expected behavior

We may have getters with complex logic within, so we would want that getter to be computed only once but it can be computed twice, one for checking the nullability and other time for assigning the value. We may want to store the getter value in a variable, check for nullability and then assign the value.

Actual behavior

No response

Steps to reproduce the problem

NA

MapStruct Version

1.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions