mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#168 Change retention of method-level annotations to CLASS, as they now need to be read from other classes as well
This commit is contained in:
parent
9bfdc54b7b
commit
ea73669096
@ -32,7 +32,7 @@ import java.lang.annotation.Target;
|
||||
* @author Sjaak Derksen
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
public @interface BeanMapping {
|
||||
|
||||
/**
|
||||
|
@ -50,7 +50,7 @@ import java.lang.annotation.Target;
|
||||
* @author Sjaak Derksen
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
public @interface InheritConfiguration {
|
||||
|
||||
/**
|
||||
|
@ -38,7 +38,7 @@ import java.lang.annotation.Target;
|
||||
* @author Sjaak Derksen
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
public @interface InheritInverseConfiguration {
|
||||
|
||||
/**
|
||||
|
@ -35,7 +35,7 @@ import java.util.Date;
|
||||
* @author Gunnar Morling
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
public @interface IterableMapping {
|
||||
|
||||
/**
|
||||
|
@ -34,7 +34,7 @@ import java.util.Date;
|
||||
* @author Gunnar Morling
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
public @interface MapMapping {
|
||||
|
||||
/**
|
||||
|
@ -40,7 +40,7 @@ import java.util.Date;
|
||||
* @author Gunnar Morling
|
||||
*/
|
||||
@Repeatable(Mappings.class)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface Mapping {
|
||||
|
||||
|
@ -28,7 +28,7 @@ import java.lang.annotation.Target;
|
||||
*
|
||||
* @author Gunnar Morling
|
||||
*/
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface Mappings {
|
||||
|
||||
|
@ -38,7 +38,7 @@ import java.util.Date;
|
||||
*
|
||||
* @author Gunnar Morling
|
||||
*/
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface Mapping {
|
||||
|
||||
|
@ -28,7 +28,7 @@ import java.lang.annotation.Target;
|
||||
*
|
||||
* @author Gunnar Morling
|
||||
*/
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface Mappings {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user