Uses of Class
edu.umd.cs.findbugs.BugInstance
Packages that use BugInstance
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.-
Uses of BugInstance in edu.umd.cs.findbugs
Methods in edu.umd.cs.findbugs that return BugInstanceModifier and TypeMethodDescriptionBugInstance.add(@NonNull BugAnnotation annotation) @NonNull BugInstanceBugInstance.addAnnotations(Collection<? extends BugAnnotation> annotationCollection) Add a Collection of BugAnnotations.@NonNull BugInstanceBugInstance.addCalledMethod(XMethod m) @NonNull BugInstanceBugInstance.addCalledMethod(DismantleBytecode visitor) Add a method annotation for the method which has been called by the method currently being visited by given visitor.@NonNull BugInstanceBugInstance.addCalledMethod(String className, String methodName, String methodSig, boolean isStatic) Add a method annotation.@NonNull BugInstanceBugInstance.addCalledMethod(org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InvokeInstruction inv) Add a method annotation for the method which is called by given instruction.@NonNull BugInstanceBugInstance.addCalledMethod(org.apache.bcel.generic.MethodGen methodGen, org.apache.bcel.generic.InvokeInstruction inv) Add a method annotation for the method which is called by given instruction.@NonNull BugInstanceBugInstance.addClass(ClassDescriptor classDescriptor) Add a class annotation.@NonNull BugInstanceBugInstance.addClass(PreorderVisitor visitor) Add a class annotation for the class that the visitor is currently visiting.@NonNull BugInstanceAdd a class annotation.@NonNull BugInstanceAdd a class annotation.@NonNull BugInstanceBugInstance.addClass(org.apache.bcel.classfile.JavaClass jclass) Add a class annotation.@NonNull BugInstanceBugInstance.addClass(org.objectweb.asm.tree.ClassNode classNode) Add a class annotation for the classNode.BugInstance.addClassAndMethod(XMethod xMethod) @NonNull BugInstanceBugInstance.addClassAndMethod(MethodDescriptor methodDescriptor) @NonNull BugInstanceBugInstance.addClassAndMethod(MethodAnnotation methodAnnotation) Add class and method annotations for given method.@NonNull BugInstanceBugInstance.addClassAndMethod(PreorderVisitor visitor) Add a class annotation and a method annotation for the class and method which the given visitor is currently visiting.@NonNull BugInstanceBugInstance.addClassAndMethod(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Add class and method annotations for given class and method.@NonNull BugInstanceBugInstance.addClassAndMethod(org.apache.bcel.generic.MethodGen methodGen, String sourceFile) Add class and method annotations for given method.@NonNull BugInstanceBugInstance.addEqualsMethodUsed(ClassDescriptor expectedClass) @NonNull BugInstanceBugInstance.addEqualsMethodUsed(@Nullable Collection<XMethod> equalsMethods) @NonNull BugInstanceBugInstance.addField(FieldVariable field) Add a field annotation for a FieldVariable matched in a ByteCodePattern.@NonNull BugInstanceAdd a field annotation for an XField.@NonNull BugInstanceBugInstance.addField(FieldDescriptor fieldDescriptor) Add a field annotation for a FieldDescriptor.@NonNull BugInstanceBugInstance.addField(FieldAnnotation fieldAnnotation) Add a field annotation@NonNull BugInstanceBugInstance.addField(PreorderVisitor visitor) @NonNull BugInstanceAdd a field annotation.@NonNull BugInstanceAdd a field annotation.BugInstance.addFieldOrMethodValueSource(OpcodeStack.Item item) @NonNull BugInstanceBugInstance.addFoundAndExpectedType(String foundType, String expectedType) @NonNull BugInstanceBugInstance.addFoundAndExpectedType(org.apache.bcel.generic.Type foundType, org.apache.bcel.generic.Type expectedType) @NonNull BugInstanceBugInstance.addInt(int value) Add an integer annotation.@NonNull BugInstanceBugInstance.addMethod(JavaClassAndMethod classAndMethod) Add a method annotation.@NonNull BugInstanceAdd a MethodAnnotation from an XMethod.@NonNull BugInstanceBugInstance.addMethod(MethodDescriptor method) Add a MethodAnnotation from an MethodDescriptor.@NonNull BugInstanceBugInstance.addMethod(MethodAnnotation methodAnnotation) Add a method annotation.@NonNull BugInstanceBugInstance.addMethod(PreorderVisitor visitor) Add a method annotation for the method which the given visitor is currently visiting.@NonNull BugInstanceAdd a method annotation.@NonNull BugInstanceAdd a method annotation.@NonNull BugInstanceBugInstance.addMethod(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Add a method annotation.@NonNull BugInstanceAdd a method annotation.BugInstance.addOptionalAnnotation(@Nullable BugAnnotation annotation) BugInstance.addOptionalAnnotation(@Nullable BugAnnotation annotation, String role) @NonNull BugInstanceBugInstance.addOptionalField(@Nullable XField xfield) Add a field annotation for an XField.@NonNull BugInstanceBugInstance.addOptionalLocalVariable(DismantleBytecode dbc, OpcodeStack.Item item) Local variable addersBugInstance.addOptionalUniqueAnnotations(BugAnnotation... annotations) BugInstance.addOptionalUniqueAnnotationsWithFallback(BugAnnotation fallback, BugAnnotation... annotations) @NonNull BugInstanceBugInstance.addParameterAnnotation(int index, String role) Add an annotation about a parameter@NonNull BugInstanceBugInstance.addReferencedField(FieldAnnotation fa) Add a field annotation for the field referenced by the FieldAnnotation parameter@NonNull BugInstanceBugInstance.addReferencedField(DismantleBytecode visitor) Add a field annotation for the field which has just been accessed by the method currently being visited by given visitor.BugInstance.addSomeSourceForTopTwoStackValues(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) BugInstance.addSourceForTopStackValue(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) @NonNull BugInstanceBugInstance.addSourceLine(ClassContext classContext, PreorderVisitor visitor, int pc) Add a source line annotation for instruction whose PC is given in the method that the given visitor is currently visiting.@NonNull BugInstanceBugInstance.addSourceLine(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) Add source line annotation for given Location in a method.@NonNull BugInstanceBugInstance.addSourceLine(ClassContext classContext, org.apache.bcel.classfile.Method method, org.apache.bcel.generic.InstructionHandle handle) Add source line annotation for given Location in a method.@NonNull BugInstanceBugInstance.addSourceLine(ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, String sourceFile, @NonNull org.apache.bcel.generic.InstructionHandle handle) Add a source line annotation for the given instruction in the given method.@NonNull BugInstanceBugInstance.addSourceLine(ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, String sourceFile, org.apache.bcel.generic.InstructionHandle start, org.apache.bcel.generic.InstructionHandle end) Add a source line annotation describing a range of instructions.@NonNull BugInstanceBugInstance.addSourceLine(BytecodeScanningDetector visitor) Add a source line annotation for instruction currently being visited by given visitor.@NonNull BugInstanceBugInstance.addSourceLine(BytecodeScanningDetector visitor, int pc) Add a source line annotation for instruction whose PC is given in the method that the given visitor is currently visiting.@NonNull BugInstanceBugInstance.addSourceLine(MethodDescriptor methodDescriptor, Location location) Add source line annotation for given Location in a method.@NonNull BugInstanceBugInstance.addSourceLine(SourceLineAnnotation sourceLine) Add a source line annotation.@NonNull BugInstanceBugInstance.addSourceLineRange(ClassContext classContext, PreorderVisitor visitor, int startPC, int endPC) Add a source line annotation describing the source line numbers for a range of instructions in the method being visited by the given visitor.@NonNull BugInstanceBugInstance.addSourceLineRange(BytecodeScanningDetector visitor, int startPC, int endPC) Add a source line annotation describing the source line numbers for a range of instructions in the method being visited by the given visitor.@NonNull BugInstanceBugInstance.addString(char c) Add a String annotation.@NonNull BugInstanceAdd a String annotation.@NonNull BugInstanceBugInstance.addSuperclass(PreorderVisitor visitor) Add a class annotation for the superclass of the class the visitor is currently visiting.@NonNull BugInstanceBugInstance.addType(ClassDescriptor c) @NonNull BugInstanceAdd a type annotation.@NonNull BugInstanceBugInstance.addType(org.apache.bcel.generic.Type type) @NonNull BugInstanceBugInstance.addTypeOfNamedClass(String typeName) @NonNull BugInstanceBugInstance.addUnknownSourceLine(String className, String sourceFile) Add a non-specific source line annotation.BugInstance.addValueSource(@Nullable OpcodeStack.Item item, DismantleBytecode dbc) BugInstance.addValueSource(OpcodeStack.Item item, org.apache.bcel.classfile.Method method, int pc) @NonNull BugInstanceBugInstance.addVisitedField(PreorderVisitor visitor) Add a field annotation for the field which is being visited by given visitor.ClassWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) FieldWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) MethodWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) PackageWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) ParameterWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) abstract BugInstanceWarningSuppressor.buildUselessSuppressionBugInstance(UselessSuppressionDetector detector) @NonNull BugInstanceAdd a description to the most recently added bug annotation.SortedBugCollection.getMatching(BugInstance bugInstance) @NonNull BugInstanceBugInstance.lowerPriorityIfDeprecated()static BugInstanceObfuscate.obfuscate(BugInstance b) @NonNull BugInstanceBugInstance.setProperty(String name, String value) Set value of given property.Methods in edu.umd.cs.findbugs that return types with arguments of type BugInstanceModifier and TypeMethodDescriptionBugCollection.getCollection()Return the Collection storing the BugInstance objects.SortedBugCollection.getCollection()BugCollection.iterator()Return an Iterator over all the BugInstance objects in the BugCollection.SortedBugCollection.iterator()Iterable<? extends BugInstance> BugAccumulator.uniqueBugs()Methods in edu.umd.cs.findbugs with parameters of type BugInstanceModifier and TypeMethodDescriptionvoidBugAccumulator.accumulateBug(BugInstance bug, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) voidBugAccumulator.accumulateBug(BugInstance bug, ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, String sourceFile, Location location) voidBugAccumulator.accumulateBug(BugInstance bug, BytecodeScanningDetector visitor) Accumulate a warning at source location currently being visited by given BytecodeScanningDetector.voidBugAccumulator.accumulateBug(BugInstance bug, SourceLineAnnotation sourceLine) Accumulate a warning at given source location.voidBugPcMap.accumulateBug(BugInstance sourceLine, BytecodeScanningDetector visitor) booleanBugCollection.add(BugInstance bugInstance) Add a BugInstance to this BugCollection.booleanBugCollection.add(BugInstance bugInstance, boolean updateActiveTime) Add a BugInstance to this BugCollection.booleanSortedBugCollection.add(BugInstance bugInstance) Add a BugInstance to this BugCollection.booleanSortedBugCollection.add(BugInstance bugInstance, boolean updateActiveTime) voidProjectStats.addBug(BugInstance bug) Called when a bug is reported.voidPackageStats.addError(BugInstance bug) intPriorityAdjuster.adjustForDetector(BugInstance bugInstance) Adjust priority if the factory was forcibly enabled byExecutionPlanalthough the user did not select it.protected voidTextUIBugReporter.checkBugInstance(BugInstance bugInstance) For debugging: check a BugInstance to make sure it is valid.intFuzzyBugComparator.compare(BugInstance lhs, BugInstance rhs) intSloppyBugComparator.compare(BugInstance lhs, BugInstance rhs) intSortedBugCollection.BugInstanceComparator.compare(BugInstance lhs, BugInstance rhs) intSortedBugCollection.MultiversionBugInstanceComparator.compare(BugInstance lhs, BugInstance rhs) intVersionInsensitiveBugComparator.compare(BugInstance lhs, BugInstance rhs) intWarningComparator.compare(BugInstance lhs, BugInstance rhs) intBugInstance.compareTo(BugInstance other) booleanSortedBugCollection.contains(BugInstance bugInstance) voidProjectPackagePrefixes.countBug(BugInstance b) protected abstract voidAbstractBugReporter.doReportBug(BugInstance bugInstance) Subclasses must override this.voidBugCollectionBugReporter.doReportBug(BugInstance bugInstance) protected voidEmacsBugReporter.doReportBug(BugInstance bugInstance) protected voidPrintingBugReporter.doReportBug(BugInstance bugInstance) voidSortingBugReporter.doReportBug(BugInstance bugInstance) voidXDocsBugReporter.doReportBug(BugInstance bugInstance) static intBugRanker.findRank(BugInstance bug) SortedBugCollection.getMatching(BugInstance bugInstance) Iterable<? extends SourceLineAnnotation> BugAccumulator.locations(BugInstance bug) booleanClassWarningSuppressor.match(BugInstance bugInstance) booleanFieldWarningSuppressor.match(BugInstance bugInstance) booleanMethodWarningSuppressor.match(BugInstance bugInstance) booleanPackageWarningSuppressor.match(BugInstance bugInstance) booleanParameterWarningSuppressor.match(BugInstance bugInstance) booleanSuppressionMatcher.match(BugInstance b) booleanWarningSuppressor.match(BugInstance bugInstance) protected voidAbstractBugReporter.notifyObservers(BugInstance bugInstance) This should be called when a bug is reported by a subclass.static BugInstanceObfuscate.obfuscate(BugInstance b) protected voidEmacsBugReporter.printBug(BugInstance bugInstance) protected voidTextUIBugReporter.printBug(BugInstance bugInstance) Print bug in one-line format.protected voidXDocsBugReporter.printBug(BugInstance bugInstance) booleanSortedBugCollection.remove(BugInstance bugInstance) final voidAbstractBugReporter.reportBug(@NonNull BugInstance bugInstance) voidBugAccumulator.reportBug(BugInstance bug, edu.umd.cs.findbugs.BugAccumulator.Data d) voidBugReportDispatcher.reportBug(@NonNull BugInstance bugInstance) voidBugReporter.reportBug(@NonNull BugInstance bugInstance) Report a bug.voidBugReporterObserver.reportBug(BugInstance bugInstance) Called when a BugReporter reports a bug.voidCategoryFilteringBugReporter.reportBug(@NonNull BugInstance bugInstance) voidDelegatingBugReporter.reportBug(@NonNull BugInstance bugInstance) voidExcludingHashesBugReporter.reportBug(@NonNull BugInstance bugInstance) voidFilterBugReporter.reportBug(@NonNull BugInstance bugInstance) voidBugInstance.setHistory(BugInstance from) voidXDocsBugReporter.toElement(BugInstance bugInstance) Method parameters in edu.umd.cs.findbugs with type arguments of type BugInstanceModifier and TypeMethodDescriptionvoidSortedBugCollection.addAll(Collection<BugInstance> collection) Add a Collection of BugInstances to this BugCollection object.voidSortedBugCollection.addAll(Collection<BugInstance> collection, boolean updateActiveTime) Add a Collection of BugInstances to this BugCollection object.static voidSortedBugCollection.cloneAll(Collection<BugInstance> dest, Collection<BugInstance> source) Clone all of the BugInstance objects in the source Collection and add them to the destination Collection.Constructor parameters in edu.umd.cs.findbugs with type arguments of type BugInstanceModifierConstructorDescriptionSortedBugCollection(ProjectStats projectStats, Comparator<BugInstance> comparator) Constructor.SortedBugCollection(ProjectStats projectStats, Comparator<BugInstance> comparator, Project project) SortedBugCollection(Comparator<BugInstance> comparator) Constructor. -
Uses of BugInstance in edu.umd.cs.findbugs.bugReporter
Methods in edu.umd.cs.findbugs.bugReporter with parameters of type BugInstanceModifier and TypeMethodDescriptionvoidMaxRankDecorator.reportBug(@NonNull BugInstance bugInstance) voidSuppressionDecorator.reportBug(@NonNull BugInstance bugInstance) -
Uses of BugInstance in edu.umd.cs.findbugs.config
Methods in edu.umd.cs.findbugs.config with parameters of type BugInstanceModifier and TypeMethodDescriptionbooleanProjectFilterSettings.displayWarning(BugInstance bugInstance) Return whether or not a warning should be displayed, according to the project filter settings. -
Uses of BugInstance in edu.umd.cs.findbugs.detect
Methods in edu.umd.cs.findbugs.detect that return BugInstanceModifier and TypeMethodDescriptionCheckExpectedWarnings.makeWarning(String bugPattern, Object descriptor, int priority, ClassDescriptor cd) Deprecated.Methods in edu.umd.cs.findbugs.detect with parameters of type BugInstanceModifier and TypeMethodDescriptionprotected voidAbstractAssertDetector.reportBug(BugInstance bug) protected abstract voidBuildUnconditionalParamDerefDatabase.reportBug(BugInstance bug) voidFindBugsSummaryStats.reportBug(BugInstance bug) protected voidNoteUnconditionalParamDerefs.reportBug(BugInstance bug) protected voidTrainUnconditionalDerefParams.reportBug(BugInstance bug) Method parameters in edu.umd.cs.findbugs.detect with type arguments of type BugInstanceModifier and TypeMethodDescriptionvoidCheckExpectedWarnings.checkAnnotation(@Nullable String bugCode, Collection<BugInstance> warnings, boolean expectWarnings, int priority, Integer rank, Integer num, Object methodDescriptor, int minPriority, ClassDescriptor cd) Deprecated. -
Uses of BugInstance in edu.umd.cs.findbugs.filter
Methods in edu.umd.cs.findbugs.filter with parameters of type BugInstanceModifier and TypeMethodDescriptionbooleanAndMatcher.match(BugInstance bugInstance) booleanAnnotationMatcher.match(BugInstance bugInstance) booleanBugMatcher.match(BugInstance bugInstance) booleanClassMatcher.match(BugInstance bugInstance) booleanConfidenceMatcher.match(BugInstance bugInstance) booleanFieldMatcher.match(BugInstance bugInstance) booleanFilter.match(BugInstance bugInstance) booleanFirstVersionMatcher.match(BugInstance bugInstance) booleanLastVersionMatcher.match(BugInstance bugInstance) booleanLocalMatcher.match(BugInstance bugInstance) booleanMatcher.match(BugInstance bugInstance) Determine whether or not the given BugInstance has the feature this Matcher tests for.booleanMethodMatcher.match(BugInstance bugInstance) booleanNotMatcher.match(BugInstance bugInstance) booleanOrMatcher.match(BugInstance bugInstance) booleanPriorityMatcher.match(BugInstance bugInstance) booleanRankMatcher.match(BugInstance bugInstance) booleanSourceMatcher.match(BugInstance bugInstance) booleanTypeMatcher.match(BugInstance bugInstance) -
Uses of BugInstance in edu.umd.cs.findbugs.gui2
Methods in edu.umd.cs.findbugs.gui2 that return BugInstanceMethods in edu.umd.cs.findbugs.gui2 with parameters of type BugInstanceModifier and TypeMethodDescriptionbooleanSuppressionMatcher.add(BugInstance bugInstance) Deprecated.MainFrameComponentFactory.bugSummaryComponent(String str, BugInstance bug) Creates bug summary component.voidSourceCodeDisplay.displaySource(BugInstance bug, SourceLineAnnotation source) abstract StringSortables.getFrom(BugInstance bug) BugTreeModel.getPathToBug(BugInstance b) BugTreeModel.getPathToNewlyUnsuppressedBug(BugInstance b) static MatcherFilterFactory.makeMatcher(Collection<Sortables> sortables, BugInstance bug) booleanCompoundMatcher.match(BugInstance bugInstance) Deprecated.booleanFilterMatcher.match(BugInstance bugInstance) Deprecated.booleanStackedFilterMatcher.match(BugInstance bugInstance) Deprecated.booleanSuppressionMatcher.match(BugInstance bugInstance) Deprecated.booleanViewFilter.show(BugInstance b) booleanViewFilter.showIgnoringPackagePrefixes(BugInstance b) -
Uses of BugInstance in edu.umd.cs.findbugs.props
Methods in edu.umd.cs.findbugs.props with parameters of type BugInstanceModifier and TypeMethodDescriptionvoidWarningPropertySet.decorateBugInstance(BugInstance bugInstance) Decorate given BugInstance with properties.