#341 Doc improvement

This commit is contained in:
Gunnar Morling 2014-11-19 21:41:03 +01:00
parent e2dbd6ae1d
commit dfe7e8012b

View File

@ -35,20 +35,18 @@ import org.mapstruct.ap.prism.QualifierPrism;
/** /**
* This selector selects a best match based on qualifiers name. * This selector selects a best match based on qualifiers name.
*
* <p> * <p>
* A method is said to be marked with a qualifier annotation if the class in which it resides is annotated with a * A method is said to be marked with a qualifier annotation if the class in which it resides is annotated with a
* qualifier annotation or if the method itself is annotated with a qualifier annotation or both. * qualifier annotation or if the method itself is annotated with a qualifier annotation or both.
* </p>
*
* <p> * <p>
* Rules: * Rules:
* <ol> * <ol>
* <li> 1. If a method is marked with a qualifier annotation, it does not contribute to a match otherwise and * <li>If a method is marked with a qualifier annotation, it does not contribute to a match otherwise and is hence
* is hence removed from the list of potential mapping methods</li> * removed from the list of potential mapping methods</li>
* <li> 2. If multiple qualifiers (qualifedBy) are specified, all should match to make a match.</li> * <li>If multiple qualifiers (qualifedBy) are specified, all should match to make a match.</li>
* </ol> * </ol>
* </p> * </p>
*
* @author Sjaak Derksen * @author Sjaak Derksen
*/ */
public class QualifierSelector implements MethodSelector { public class QualifierSelector implements MethodSelector {