Skip to content

Commit

Permalink
mapstruct#2709 Corrected description for example demonstrating defaul…
Browse files Browse the repository at this point in the history
…t expression
  • Loading branch information
Goni-Dev committed Jan 23, 2022
1 parent 0f297ae commit 0a8e9b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Default expressions are a combination of default values and expressions. They wi

The same warnings and restrictions apply to default expressions that apply to expressions. Only Java is supported, and MapStruct will not validate the expression at generation-time.

The example below demonstrates how two source properties can be mapped to one target:
The example below demonstrates how a default expression can be used to set a value when the source attribute is not present (e.g. is `null`):

.Mapping method using a default expression
====
Expand Down

0 comments on commit 0a8e9b7

Please sign in to comment.