@Documented
@Retention(value=SOURCE)
@Target(value={PACKAGE,TYPE,CONSTRUCTOR,METHOD,FIELD,LOCAL_VARIABLE,PARAMETER})
public @interface DefaultQualifiers
This annotation permits specifying multiple default qualifiers for more than one type system. It is generally not used by programmers, because Java permits writing multiple annotations of the same name at a single location and internally creates this wrapper annotation.
Example: The following two code snippets have identical effect.
@DefaultQualifier(NonNull.class) @DefaultQualifier(value = Interned.class, locations = ALL_EXCEPT_LOCALS) @DefaultQualifier(Tainted.class) class MyClass { ... }
@DefaultQualifiers({ @DefaultQualifier(NonNull.class), @DefaultQualifier(value = Interned.class, locations = ALL_EXCEPT_LOCALS), @DefaultQualifier(Tainted.class) }) class MyClass { ... }This annotation currently has no effect in stub files.
DefaultQualifier
Modifier and Type | Optional Element and Description |
---|---|
DefaultQualifier[] |
value
The default qualifier settings.
|
public abstract DefaultQualifier[] value