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:
-
SuppressFBWarningsfor suppressing FindBugs warnings - Annotations about expected/unexpected warnings in FindBugs regression tests
-
ExpectWarningWarnings expected to be generated -
NoWarningWarnings that should not be generated -
DesireWarningWarnings we wish to generated -
DesireNoWarningWarnings we wish to not generate generated
-
-
ClassDescriptionDeprecated.Deprecated.- use
CheckReturnValueinstead.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 useParametersAreNonnullByDefaultinstead of @DefaultAnnotation(NonNull.class), andTypeQualifierDefaultin 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.- useNonnullinstead.Annotation indicating that no FindBugs warning is expected.Deprecated.- useNullableinstead.Deprecated.- UseOverridingMethodsMustInvokeSuperinsteadDeprecated.- 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.useConfidenceinsteadDeprecated.Used to suppress FindBugs warnings.Deprecated.- UseSuppressFBWarningsinsteadDeprecated.Deprecated.
CheckForNullinstead.