|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value={CONSTRUCTOR,METHOD,FIELD,LOCAL_VARIABLE,PARAMETER,TYPE}) public @interface DefaultQualifier
Applied to a declaration of a package, type, method, variable, etc., specifies that the given annotation should be the default, that will be applied to all types within the declaration for which no other annotation is explicitly written.
If multiple DefaultQualifier annotations are in scope, the innermost one takes precedence.
If you wish to write multiple @DefaultQualifier annotations (for
unrelated type systems) at the same location, use DefaultQualifiers
.
DefaultLocation
Required Element Summary | |
---|---|
String |
value
The fully qualified name of the default annotation. |
Optional Element Summary | |
---|---|
DefaultLocation[] |
locations
|
Element Detail |
---|
public abstract String value
To prevent affecting other type systems, always specify an annotation in your own type hierarchy. (For example, do not set "checkers.quals.Unqualified" as the default.)
public abstract DefaultLocation[] locations
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |