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
-
-
Enum Summary Enum Description Confidence Describes the confidence with which FindBugs reports a bug instance.Priority Deprecated. useConfidenceinsteadWhen Deprecated. -
Annotation Types Summary Annotation Type Description CheckForNull Deprecated. - useCheckForNullinstead.CheckReturnValue Deprecated. - useCheckReturnValueinstead.CleanupObligation Mark a class or interface as a resource type requiring cleanup.CreatesObligation Mark a constructor or method as creating a resource which requires cleanup.DefaultAnnotation Deprecated. - Use the JSR305 annotations instead.DefaultAnnotationForFields Deprecated. DefaultAnnotationForMethods Deprecated. DefaultAnnotationForParameters Deprecated. - use the JSR305 annotations instead, For example, you can useParametersAreNonnullByDefaultinstead of @DefaultAnnotation(NonNull.class), andTypeQualifierDefaultin general to define a type qualifier default.DesireNoWarning Annotation indicating that no FindBugs warnings of the specified type is desired.DesireWarning Annotation indicating that a FindBugs warning is desired.DischargesObligation Mark a method as cleaning up a resource.ExpectWarning Annotation indicating that a FindBugs warning is expected.NonNull Deprecated. - useNonnullinstead.NoWarning Annotation indicating that no FindBugs warning is expected.Nullable Deprecated. - useNullableinstead.OverrideMustInvoke Deprecated. - UseOverridingMethodsMustInvokeSuperinsteadPossiblyNull Deprecated. - 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.ReturnValuesAreNonnullByDefault Deprecated. SuppressFBWarnings Used to suppress FindBugs warnings.SuppressWarnings Deprecated. - UseSuppressFBWarningsinsteadUnknownNullness Deprecated.