Package edu.umd.cs.findbugs.annotations
package edu.umd.cs.findbugs.annotations
Annotations for FindBugs (mostly deprecated except for
SuppressFBWarnings
).
This annotations are mostly deprecated and replaced by JSR 305 annotations
defined in javax.annotation. The annotations still actively supported are:
-
SuppressFBWarnings
for suppressing FindBugs warnings - Annotations about expected/unexpected warnings in FindBugs regression tests
-
ExpectWarning
Warnings expected to be generated -
NoWarning
Warnings that should not be generated -
DesireWarning
Warnings we wish to generated -
DesireNoWarning
Warnings we wish to not generate generated
-
-
ClassDescriptionDeprecated.Deprecated.- use
CheckReturnValue
instead.Mark a class or interface as a resource type requiring cleanup.Describes the confidence with which FindBugs reports a bug instance.Mark a constructor or method as creating a resource which requires cleanup.Deprecated.- Use the JSR305 annotations instead.Deprecated.Deprecated.Deprecated.- use the JSR305 annotations instead, For example, you can useParametersAreNonnullByDefault
instead of @DefaultAnnotation(NonNull.class), andTypeQualifierDefault
in general to define a type qualifier default.Annotation indicating that no FindBugs warnings of the specified type is desired.Annotation indicating that a FindBugs warning is desired.Mark a method as cleaning up a resource.Annotation indicating that a FindBugs warning is expected.Deprecated.- useNonnull
instead.Annotation indicating that no FindBugs warning is expected.Deprecated.- useNullable
instead.Deprecated.- UseOverridingMethodsMustInvokeSuper
insteadDeprecated.- use CheckForNull instead; the name of which more clearly indicates that not only could the value be null, but that good coding practice requires that the value be checked for null.Deprecated.useConfidence
insteadDeprecated.Used to suppress FindBugs warnings.Deprecated.- UseSuppressFBWarnings
insteadDeprecated.Deprecated.
CheckForNull
instead.