Top Description Methods
com.google.errorprone.annotations

public @Interface IncompatibleModifiers

extends Annotation
Annotations
@Documented
@Retention:CLASS
@Target:ANNOTATION_TYPE
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

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 {}
</pre>

<p>will be considered illegal when used as:

<pre>
@MyAnnotation public void foo() {}
Author
[email protected] (Jige Yu)

Method Summary

Modifier and TypeMethod and Description
public Modifier[]
modifier()

The incompatible modifiers.

public Modifier[]
value()

Deprecated use modifier instead
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

modifierback 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.

valueback to summary
public Modifier[] value()

Deprecated

use modifier instead

Annotations
@Deprecated