Made AnyAnnotation deprecated

This commit is contained in:
Roel Spilker committed 2010-11-10 20:38:42 +01:00
1 parent 3d4b27d6d2
commit c8774389e7
2 files changed
+9 -5

No files matched your search

+4 -2
View File
@@ -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 {}
}
+5 -3
View File
@@ -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 {}
}