Annotation Type IncompatibleModifiers
-
@Documented @Retention(CLASS) @Target(ANNOTATION_TYPE) public @interface IncompatibleModifiers
Annotation declaring that the target annotation is incompatible with any one of the provided modifiers. For example, an annotation declared as:@IncompatibleModifiers(modifier = Modifier.PUBLIC) @interface MyAnnotation {}
will be considered illegal when used as:
@MyAnnotation public void foo() {}
- Author:
- [email protected] (Jige Yu)
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Modifier[]
modifier
The incompatible modifiers.Modifier[]
value
Deprecated.usemodifier()
instead
-
-
-
Element Detail
-
value
@Deprecated Modifier[] value
Deprecated.usemodifier()
instead- Default:
- {}
-
-
-
modifier
Modifier[] modifier
The incompatible modifiers. The annotated element is illegal with the presence of any one or more of these modifiers.Empty array has the same effect as not applying this annotation at all; duplicates are allowed but have no effect.
- Default:
- {}
-
-