edu.umd.cs.findbugs.annotations
Annotation Type DefaultAnnotation
-
Deprecated.- Use the JSR305 annotations instead. For example, you can useParametersAreNonnullByDefaultinstead of @DefaultAnnotation(NonNull.class) so that method parameters are nonnull by default in the annotated element. You can also useTypeQualifierDefaultin general to define your own annotation that specifies a default type qualifier. For example,NonnegativeTypeQualifierDefault(ElementType.PARAMETER) public @interface ParametersAreNonnegativeByDefault {}The JSR305
CheckReturnValueannotation 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(value={TYPE,PACKAGE}) @Retention(value=CLASS) @Deprecated public @interface DefaultAnnotationIndicates that all members of the class or package should be annotated with the default value of the supplied annotation class. This would be used for behavior annotations such as @NonNull, @CheckForNull, or @CheckReturnValue. In particular, you can use @DefaultAnnotation(NonNull.class) on a class or package, and then use @Nullable only on those parameters, methods or fields that you want to allow to be null.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element and Description java.lang.Class<? extends java.lang.annotation.Annotation>[]valueDeprecated.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element and Description ConfidenceconfidenceDeprecated.PrioritypriorityDeprecated.
-
-
-
Element Detail
-
value
public abstract java.lang.Class<? extends java.lang.annotation.Annotation>[] value
Deprecated.
-
-
-
priority
@Deprecated public abstract Priority priority
Deprecated.- Default:
- edu.umd.cs.findbugs.annotations.Priority.MEDIUM
-
-
-
confidence
public abstract Confidence confidence
Deprecated.- Default:
- edu.umd.cs.findbugs.annotations.Confidence.MEDIUM
-
-
DataMelt 3.0 © DataMelt by jWork.ORG