#770 Update retention-policy of custom qualifier annotations in docs and tests to CLASS.

This commit is contained in:
Andreas Gudian 2016-03-07 14:19:14 +01:00 committed by Gunnar Morling
parent 27aa40c0ec
commit c671692cd0
6 changed files with 13 additions and 11 deletions

View File

@ -35,11 +35,13 @@ import java.lang.annotation.Target;
* <li>{@link MapMapping#valueQualifiedBy() }</li>
* </ul>
* Example:
*
* <pre>
* &#64;Qualifier
* &#64;Target(ElementType.METHOD)
* &#64;Retention(RetentionPolicy.SOURCE)
* public &#64;interface EnglishToGerman {}
* &#64;Retention(RetentionPolicy.CLASS)
* public &#64;interface EnglishToGerman {
* }
* </pre>
*
* @author Sjaak Derksen

View File

@ -749,7 +749,7 @@ Enter the qualifier approach:
----
@Qualifier
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
@Retention(RetentionPolicy.CLASS)
public @interface TitleTranslator {
}
----
@ -764,7 +764,7 @@ And, some qualifiers to indicate which translator to use to map from source lang
----
@Qualifier
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.SOURCE)
@Retention(RetentionPolicy.CLASS)
public @interface EnglishToGerman {
}
----
@ -773,7 +773,7 @@ public @interface EnglishToGerman {
----
@Qualifier
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.SOURCE)
@Retention(RetentionPolicy.CLASS)
public @interface GermanToEnglish {
}
----

View File

@ -31,6 +31,6 @@ import org.mapstruct.Qualifier;
*/
@Qualifier
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.SOURCE)
@Retention(RetentionPolicy.CLASS)
public @interface CreateGermanRelease {
}

View File

@ -31,6 +31,6 @@ import org.mapstruct.Qualifier;
*/
@Qualifier
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.SOURCE)
@Retention(RetentionPolicy.CLASS)
public @interface EnglishToGerman {
}

View File

@ -28,6 +28,6 @@ import java.lang.annotation.Target;
* @author Sjaak Derksen
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.SOURCE)
@Retention(RetentionPolicy.CLASS)
public @interface NonQualifierAnnotated {
}

View File

@ -31,6 +31,6 @@ import org.mapstruct.Qualifier;
*/
@Qualifier
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
@Retention(RetentionPolicy.CLASS)
public @interface TitleTranslator {
}