Skip to content

Commit d5f8251

Browse files
authored
mapstruct#3815: chore(docs): Improved wording about @condition usage
1 parent 3955124 commit d5f8251

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

documentation/src/main/asciidoc/chapter-10-advanced-mapping-options.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ Conditional mapping can also be used to check if a source parameter should be ma
308308
A custom condition method for properties is a method that is annotated with `org.mapstruct.Condition` and returns `boolean`.
309309
A custom condition method for source parameters is annotated with `org.mapstruct.SourceParameterCondition`, `org.mapstruct.Condition(appliesTo = org.mapstruct.ConditionStrategy#SOURCE_PARAMETERS)` or meta-annotated with `Condition(appliesTo = ConditionStrategy#SOURCE_PARAMETERS)`
310310

311-
e.g. if you only want to map a String property when it is not `null`, and it is not empty then you can do something like:
311+
e.g. if you only want to map a String property when it is not `null` and not empty then you can do something like:
312312

313313
.Mapper using custom condition check method
314314
====

0 commit comments

Comments
 (0)