mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#707 Document to always use RetentionPolicy.CLASS in custom qualifier annotations.
This commit is contained in:
parent
fd077047ca
commit
824fb993b5
@ -44,6 +44,8 @@ import java.lang.annotation.Target;
|
|||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
* <b>NOTE: </b>Qualifiers should have {@link RetentionPolicy#CLASS}.
|
||||||
|
*
|
||||||
* @author Sjaak Derksen
|
* @author Sjaak Derksen
|
||||||
*/
|
*/
|
||||||
@Target(ElementType.ANNOTATION_TYPE)
|
@Target(ElementType.ANNOTATION_TYPE)
|
||||||
|
@ -865,6 +865,11 @@ public class Titles {
|
|||||||
----
|
----
|
||||||
====
|
====
|
||||||
|
|
||||||
|
[WARNING]
|
||||||
|
====
|
||||||
|
Please make sure the used retention policy equals retention policy `CLASS` (`@Retention(RetentionPolicy.CLASS)`).
|
||||||
|
====
|
||||||
|
|
||||||
[WARNING]
|
[WARNING]
|
||||||
====
|
====
|
||||||
A class / method annotated with a qualifier will not qualify anymore for mappings that do not have the `qualifiedBy` element.
|
A class / method annotated with a qualifier will not qualify anymore for mappings that do not have the `qualifiedBy` element.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user