Skip to content

Commit

Permalink
mapstruct#1784 NullValueMappingStrategy.RETURN_DEFAULT refers wrongly…
Browse files Browse the repository at this point in the history
… to primitive types
  • Loading branch information
sjaakd committed Apr 5, 2019
1 parent 7a19b2b commit 746a942
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -2134,7 +2134,6 @@ MapStruct offers control over the object to create when the source argument of t
However, by specifying `nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT` on `@BeanMapping`, `@IterableMapping`, `@MapMapping`, or globally on `@Mapper` or `@MappingConfig`, the mapping result can be altered to return empty *default* values. This means for:

* *Bean mappings*: an 'empty' target bean will be returned, with the exception of constants and expressions, they will be populated when present.
* *Primitives*: the default values for primitives will be returned, e.g. `false` for `boolean` or `0` for `int`.
* *Iterables / Arrays*: an empty iterable will be returned.
* *Maps*: an empty map will be returned.

Expand Down

0 comments on commit 746a942

Please sign in to comment.