DefaultQualifier annotations are in scope, the innermost one takes precedence.
DefaultQualifier takes precedence over DefaultQualifierInHierarchy.
You may write multiple @DefaultQualifier annotations (for unrelated type systems, or
with different locations fields) at the same location. For example:
@DefaultQualifier(NonNull.class)
@DefaultQualifier(value = NonNull.class, locations = TypeUseLocation.IMPLICIT_UPPER_BOUND)
@DefaultQualifier(Tainted.class)
class MyClass { ... }
This annotation currently has no effect in stub files.
org.checkerframework.framework.qual.TypeUseLocation, DefaultQualifierInHierarchy, DefaultFor
| Modifier and Type | Class and Description |
|---|---|
| public static @interface | DefaultQualifier.List
A wrapper annotation that makes the |
| Modifier and Type | Method and Description |
|---|---|
| public TypeUseLocation[] | Returns: the locations to which the annotation should be appliedReturns the locations to which the annotation should be applied. |
| public Class |
| locations | back to summary |
|---|---|
| public TypeUseLocation[] locations() Returns the locations to which the annotation should be applied.
| |
| value | back to summary |
|---|---|
| public Class The Class for the default annotation. To prevent affecting other type systems, always specify an annotation in your own type
hierarchy. (For example, do not set | |
DefaultQualifier annotation repeatable.
Programmers generally do not need to write this. It is created by Java when a programmer
writes more than one DefaultQualifier annotation at the same location.
| Modifier and Type | Method and Description |
|---|---|
| public DefaultQualifier[] |
| value | back to summary |
|---|---|
| public DefaultQualifier[] value() Return the repeatable annotations.
| |