ParametersAreNonnullByDefault
instead
of @DefaultAnnotation(NonNull.class) so that method parameters are nonnull by default in the annotated
element. You can also use TypeQualifierDefault
in general to define your own annotation that specifies a default type qualifier. For example,
Nonnegative
TypeQualifierDefault
(ElementType.PARAMETER
)
public @interface ParametersAreNonnegativeByDefault {}
The JSR305 CheckReturnValue
annotation can be applied to a type or package, and it will act as a default for all methods
in that class or package unless otherwise overridden.
@Documented
@Target({TYPE,PACKAGE})
@Retention(CLASS)
@Deprecated
public @interface DefaultAnnotation
Modifier and Type | Required Element | Description |
---|---|---|
java.lang.Class<? extends java.lang.annotation.Annotation>[] |
value |
Deprecated.
|
Modifier and Type | Optional Element | Description |
---|---|---|
Confidence |
confidence |
Deprecated.
|
Priority |
priority |
Deprecated.
|
@Deprecated Priority priority
Confidence confidence
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.