@IncompatibleModifiers(modifier = Modifier.PUBLIC)
@interface MyAnnotation {}
</pre>
<p>will be considered illegal when used as:
<pre>
@MyAnnotation public void foo() {}
| Modifier and Type | Method and Description |
|---|---|
| public Modifier[] | |
| public Modifier[] |
| modifier | back to summary |
|---|---|
| public 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. | |
| value | back to summary |
|---|---|
| public Modifier[] value()
Deprecated use
| |