Uses of Interface
edu.umd.cs.findbugs.BugAnnotation
Packages that use BugAnnotation
Package
Description
Main package for the FindBugs application - contains the engine class
(
FindBugs), the object model classes for bug
instances (BugInstance,
BugAnnotation), and other miscellany.The package providing a
BugReporter implementation which produces report in SARIF format.-
Uses of BugAnnotation in edu.umd.cs.findbugs
Classes in edu.umd.cs.findbugs that implement BugAnnotationModifier and TypeClassDescriptionclassclassA BugAnnotation object specifying a Java class involved in the bug.classA BugAnnotation specifying a particular field in particular class.classBug annotation class for integer values.classBug annotation class for local variable namesclassA BugAnnotation specifying a particular method in a particular class.classAbstract base class for BugAnnotations describing constructs which are contained in a Java package.classA BugAnnotation that records a range of source lines in a class.classBug annotation class for string values.classBug annotation class for java types.Subinterfaces with type arguments of type BugAnnotation in edu.umd.cs.findbugsModifier and TypeInterfaceDescriptioninterfaceAn object providing context information about a particular BugInstance.Classes in edu.umd.cs.findbugs that implement interfaces with type arguments of type BugAnnotationModifier and TypeClassDescriptionprivate static classFilter ignored BugAnnotations from given Iterator.private classWrapper for BugAnnotation iterators, which filters out annotations we don't care about.Fields in edu.umd.cs.findbugs declared as BugAnnotationModifier and TypeFieldDescription(package private) BugAnnotationFuzzyBugComparator.FilteringBugAnnotationIterator.nextprivate BugAnnotationVersionInsensitiveBugComparator.FilteringAnnotationIterator.nextFields in edu.umd.cs.findbugs with type parameters of type BugAnnotationModifier and TypeFieldDescriptionprivate final ArrayList<BugAnnotation> BugInstance.annotationList(package private) Iterator<BugAnnotation> FuzzyBugComparator.FilteringBugAnnotationIterator.iterprivate final Iterator<BugAnnotation> VersionInsensitiveBugComparator.FilteringAnnotationIterator.iterMethods in edu.umd.cs.findbugs with type parameters of type BugAnnotationModifier and TypeMethodDescriptionprivate <T extends BugAnnotation>
TBugInstance.findPrimaryAnnotationOfType(Class<T> cls) Find the first BugAnnotation in the list of annotations that is the same type or a subtype as the given Class parameter.<A extends BugAnnotation>
ABugInstance.getAnnotationWithRole(Class<A> c, String role) Get the first bug annotation with the specified class and role; return null if no such annotation exists;Methods in edu.umd.cs.findbugs that return BugAnnotationModifier and TypeMethodDescriptionstatic BugAnnotationBugInstance.getFieldOrMethodValueSource(OpcodeStack.Item item) static BugAnnotationBugInstance.getSomeSource(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location, OpcodeStack stack, int stackPos) static BugAnnotationBugInstance.getSourceForStackValue(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location, int depth) static BugAnnotationBugInstance.getSourceForTopStackValue(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) static BugAnnotationBugInstance.getValueSource(OpcodeStack.Item item, org.apache.bcel.classfile.Method method, int pc) FuzzyBugComparator.FilteringBugAnnotationIterator.next()VersionInsensitiveBugComparator.FilteringAnnotationIterator.next()Methods in edu.umd.cs.findbugs that return types with arguments of type BugAnnotationModifier and TypeMethodDescriptionBugInstance.annotationIterator()Get an Iterator over all bug annotations.BugInstance.getAnnotations()Get an Iterator over all bug annotations.BugInstance.getAnnotationsForMessage(boolean showContext) Methods in edu.umd.cs.findbugs with parameters of type BugAnnotationModifier and TypeMethodDescriptionBugInstance.add(BugAnnotation annotation) private voidBugInstance.addJavaAnnotationNames(BugAnnotation annotation) BugInstance.addOptionalAnnotation(BugAnnotation annotation) BugInstance.addOptionalAnnotation(BugAnnotation annotation, String role) BugInstance.addOptionalUniqueAnnotations(BugAnnotation... annotations) BugInstance.addOptionalUniqueAnnotationsWithFallback(BugAnnotation fallback, BugAnnotation... annotations) intClassAnnotation.compareTo(BugAnnotation o) intFieldAnnotation.compareTo(BugAnnotation o) intIntAnnotation.compareTo(BugAnnotation o) intLocalVariableAnnotation.compareTo(BugAnnotation o) intMethodAnnotation.compareTo(BugAnnotation o) intSourceLineAnnotation.compareTo(BugAnnotation o) intStringAnnotation.compareTo(BugAnnotation o) intTypeAnnotation.compareTo(BugAnnotation o) FindBugsMessageFormat.format(BugAnnotation[] args, ClassAnnotation primaryClass) FindBugsMessageFormat.format(BugAnnotation[] args, ClassAnnotation primaryClass, boolean abridgedMessages) Format the message using the given array of BugAnnotations as arguments to bind to the placeholders in the pattern string.static booleanFuzzyBugComparator.ignore(BugAnnotation annotation) private booleanVersionInsensitiveBugComparator.isBoring(BugAnnotation annotation) private voidBugInstance.optionalAdd(Collection<BugAnnotation> c, BugAnnotation a) private voidSAXBugCollectionHandler.setAnnotationRole(Attributes attributes, BugAnnotation bugAnnotation) booleanBugInstance.tryAddingOptionalUniqueAnnotations(BugAnnotation... annotations) static voidBugAnnotationUtil.writeXML(XMLOutput xmlOutput, String elementName, BugAnnotation annotation, XMLAttributeList attributeList, boolean addMessages) Write a BugAnnotation as XML.Method parameters in edu.umd.cs.findbugs with type arguments of type BugAnnotationModifier and TypeMethodDescriptionBugInstance.addAnnotations(Collection<? extends BugAnnotation> annotationCollection) Add a Collection of BugAnnotations.private booleanVersionInsensitiveBugComparator.interestingNext(Iterator<BugAnnotation> i) private voidBugInstance.optionalAdd(Collection<BugAnnotation> c, BugAnnotation a) Constructor parameters in edu.umd.cs.findbugs with type arguments of type BugAnnotationModifierConstructorDescription -
Uses of BugAnnotation in edu.umd.cs.findbugs.ba.npe
Methods in edu.umd.cs.findbugs.ba.npe that return BugAnnotationModifier and TypeMethodDescriptionstatic BugAnnotationNullDerefAndRedundantComparisonFinder.findAnnotationFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame) Deprecated.Methods in edu.umd.cs.findbugs.ba.npe with parameters of type BugAnnotationModifier and TypeMethodDescriptionvoidNullDerefAndRedundantComparisonCollector.foundGuaranteedNullDeref(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered) Subclasses should override this method to capture values assigned null (or that become null through a comparison and branch) that are guaranteed to reach a dereference (ignoring implicit exception paths). -
Uses of BugAnnotation in edu.umd.cs.findbugs.ba.vna
Methods in edu.umd.cs.findbugs.ba.vna that return BugAnnotationModifier and TypeMethodDescriptionstatic BugAnnotationValueNumberSourceInfo.findAnnotationFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame, String partialRole) static BugAnnotationValueNumberSourceInfo.findRequiredAnnotationFromValueNumber(org.apache.bcel.classfile.Method method, Location location, ValueNumber valueNumber, ValueNumberFrame vnaFrame, String partialRole) static BugAnnotationValueNumberSourceInfo.getFromValueNumber(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location, int stackPos) -
Uses of BugAnnotation in edu.umd.cs.findbugs.detect
Fields in edu.umd.cs.findbugs.detect with type parameters of type BugAnnotationModifier and TypeFieldDescriptionprivate final Map<String, List<BugAnnotation>> UnreadFields.anonymousClassAnnotationMethods in edu.umd.cs.findbugs.detect that return BugAnnotationModifier and TypeMethodDescription(package private) BugAnnotationFindNullDeref.getVariableAnnotation(Location location) Methods in edu.umd.cs.findbugs.detect with parameters of type BugAnnotationModifier and TypeMethodDescriptionvoidFindNullDeref.foundGuaranteedNullDeref(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered) voidNoiseNullDeref.foundGuaranteedNullDeref(Set<Location> assignedNullLocationSet, Set<Location> derefLocationSet, SortedSet<Location> doomedLocations, ValueNumberDataflow vna, ValueNumber refValue, BugAnnotation variableAnnotation, NullValueUnconditionalDeref deref, boolean npeIfStatementCovered) private voidFindNullDeref.reportNullDeref(WarningPropertySet<WarningProperty> propertySet, Location location, String type, int priority, BugAnnotation variable) private voidNoiseNullDeref.reportNullDeref(WarningPropertySet<WarningProperty> propertySet, Location location, String type, int priority, BugAnnotation cause, BugAnnotation variable) -
Uses of BugAnnotation in edu.umd.cs.findbugs.gui2
Methods in edu.umd.cs.findbugs.gui2 with parameters of type BugAnnotationModifier and TypeMethodDescription(package private) ComponentMainFrameComponentFactory.bugSummaryComponent(BugAnnotation value, BugInstance bug) -
Uses of BugAnnotation in edu.umd.cs.findbugs.sarif
Methods in edu.umd.cs.findbugs.sarif with parameters of type BugAnnotationModifier and TypeMethodDescription(package private) static StringLocation.LogicalLocation.findKind(BugAnnotation annotation) Method parameters in edu.umd.cs.findbugs.sarif with type arguments of type BugAnnotationModifier and TypeMethodDescription(package private) StringPlaceholder.toArgument(List<? extends BugAnnotation> bugAnnotations, ClassAnnotation primaryClass) -
Uses of BugAnnotation in edu.umd.cs.findbugs.workflow
Methods in edu.umd.cs.findbugs.workflow with parameters of type BugAnnotationModifier and TypeMethodDescriptionprivate voidCopyBuggySource.copySourceForAnnotation(BugAnnotation ann)
ValueNumberSourceInfo.findRequiredAnnotationFromValueNumber(Method,Location,ValueNumber,ValueNumberFrame, String)instead