@Documented @Retention(value=RUNTIME) @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 necessary because Java forbids multiple
annotations of the same name at a single location.
Example:
@DefaultQualifiers({
@DefaultQualifier(NonNull.class),
@DefaultQualifier(value = Interned.class, locations = ALL_EXCEPT_LOCALS),
@DefaultQualifier(Tainted.class)
})
DefaultQualifier
Modifier and Type | Optional Element and Description |
---|---|
DefaultQualifier[] |
value
The default qualifier settings
|
public abstract DefaultQualifier[] value