#2709 Corrected description for example demonstrating default expression

This commit is contained in:
Goni-Dev 2022-01-23 17:26:21 +01:00 committed by GitHub
parent 0f297ae60f
commit 0a8e9b738c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 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 .Mapping method using a default expression
==== ====