mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 06:17:44 +00:00
Made AnyAnnotation deprecated
This commit is contained in:
1 parent
3d4b27d6d2
commit
c8774389e7
2 files changed
+9
-5
No files matched your search
@@ -58,16 +58,18 @@ public @interface Getter {
|
||||
* If you want your setter to be non-public, you can specify an alternate access level here.
|
||||
*/
|
||||
lombok.AccessLevel value() default lombok.AccessLevel.PUBLIC;
|
||||
|
||||
|
||||
/**
|
||||
* If you want your getter method to have additional annotations, you can specify them here.<br/>
|
||||
* If the {code @Getter} is put on a type, {code onMethod} may not be specified.
|
||||
* If the {@code @Getter} is put on a type, {@code onMethod} may not be specified.
|
||||
*/
|
||||
AnyAnnotation[] onMethod() default {};
|
||||
|
||||
/**
|
||||
* Placeholder annotation to enable the placement of annotations on the getter method.
|
||||
* @deprecated Don't use this annotation, since we might remove it.
|
||||
*/
|
||||
@Deprecated
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@interface AnyAnnotation {}
|
||||
}
|
||||
@@ -58,19 +58,21 @@ public @interface Setter {
|
||||
|
||||
/**
|
||||
* If you want your setter method to have additional annotations, you can specify them here.
|
||||
* If the {code @Setter} is put on a type, {code onMethod} may not be specified.
|
||||
* If the {@code @Setter} is put on a type, {@code onMethod} may not be specified.
|
||||
*/
|
||||
AnyAnnotation[] onMethod() default {};
|
||||
|
||||
/**
|
||||
* If you want the parameter of your setter to have additional annotations, you can specify them here.
|
||||
* If the {code @Setter} is put on a type, {code onParam} may not be specified.
|
||||
* If the {@code @Setter} is put on a type, {@code onParam} may not be specified.
|
||||
*/
|
||||
AnyAnnotation[] onParam() default {};
|
||||
|
||||
/**
|
||||
* Placeholder annotation to enable the placement of annotations on the setter method or its parameter.
|
||||
* Placeholder annotation to enable the placement of annotations on the setter method or its parameter.
|
||||
* @deprecated Don't use this annotation, since we might remove it.
|
||||
*/
|
||||
@Deprecated
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@interface AnyAnnotation {}
|
||||
}
|
||||
Reference in new issue
Block a user