Skip to content

Commit bc9c2bc

Browse files
dylan-lynch-imprivatafiliphr
authored andcommitted
Correct type in mapstruct FAQ
Corrected 'candidtates' to candidates
1 parent 09f9180 commit bc9c2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/faq/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ MapStruct tries various mechanisms to map a sourceproperty to a targetproperty w
280280
6. 2 step method, variant 2: `target = methodY( conversionX ( source ) )`
281281
7. 2 step method, variant 3: `target = conversionY( methodX ( source ) )`
282282

283-
Whenever MapStruct finds a unique candidate, MapStruct stops and uses this method to make the mapping between source and target. However, for option 1, 5, 6, 7 it is possible that multiple eligible candidtates are found for which MapStruct cannot decide which one to select. MapStruct reports this as "ambiguous mapping method" and lists the methods from which it cannot make a selection. Here, you have to guide MapStruct in making the correct mapping.
283+
Whenever MapStruct finds a unique candidate, MapStruct stops and uses this method to make the mapping between source and target. However, for option 1, 5, 6, 7 it is possible that multiple eligible candidates are found for which MapStruct cannot decide which one to select. MapStruct reports this as "ambiguous mapping method" and lists the methods from which it cannot make a selection. Here, you have to guide MapStruct in making the correct mapping.
284284

285285
This can be done in the following ways:
286286
* provide a method with the exact signature if MapStruct cannot select between base- and super types.

0 commit comments

Comments
 (0)