From 6af13ba22010526fc1fd3b9e879d09550e906236 Mon Sep 17 00:00:00 2001 From: Sjaak Derksen Date: Sun, 7 Apr 2019 21:38:22 +0200 Subject: [PATCH] #1784 NullValueMappingStrategy.RETURN_DEFAULT refers wrongly to primitive types (#1785) --- .../src/main/asciidoc/mapstruct-reference-guide.asciidoc | 1 - 1 file changed, 1 deletion(-) diff --git a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc index e283ae8e8..58cf78c4b 100644 --- a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc +++ b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc @@ -2124,7 +2124,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.