Uses of Class
edu.umd.cs.findbugs.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
Modifier and TypeMethodDescriptionBugInstance.add
(BugAnnotation annotation) BugInstance.addAnnotations
(Collection<? extends BugAnnotation> annotationCollection) Add a Collection of BugAnnotations.BugInstance.addCalledMethod
(XMethod m) BugInstance.addCalledMethod
(DismantleBytecode visitor) Add a method annotation for the method which has been called by the method currently being visited by given visitor.BugInstance.addCalledMethod
(String className, String methodName, String methodSig, boolean isStatic) Add a method annotation.BugInstance.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.BugInstance.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.BugInstance.addClass
(ClassDescriptor classDescriptor) Add a class annotation.BugInstance.addClass
(PreorderVisitor visitor) Add a class annotation for the class that the visitor is currently visiting.Add a class annotation.Add a class annotation.BugInstance.addClass
(org.apache.bcel.classfile.JavaClass jclass) Add a class annotation.BugInstance.addClass
(org.objectweb.asm.tree.ClassNode classNode) Add a class annotation for the classNode.BugInstance.addClassAndMethod
(XMethod xMethod) BugInstance.addClassAndMethod
(MethodDescriptor methodDescriptor) BugInstance.addClassAndMethod
(MethodAnnotation methodAnnotation) Add class and method annotations for given method.BugInstance.addClassAndMethod
(PreorderVisitor visitor) Add a class annotation and a method annotation for the class and method which the given visitor is currently visiting.BugInstance.addClassAndMethod
(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Add class and method annotations for given class and method.BugInstance.addClassAndMethod
(org.apache.bcel.generic.MethodGen methodGen, String sourceFile) Add class and method annotations for given method.BugInstance.addEqualsMethodUsed
(ClassDescriptor expectedClass) BugInstance.addEqualsMethodUsed
(Collection<XMethod> equalsMethods) BugInstance.addField
(FieldVariable field) Add a field annotation for a FieldVariable matched in a ByteCodePattern.Add a field annotation for an XField.BugInstance.addField
(FieldDescriptor fieldDescriptor) Add a field annotation for a FieldDescriptor.BugInstance.addField
(FieldAnnotation fieldAnnotation) Add a field annotationBugInstance.addField
(PreorderVisitor visitor) Add a field annotation.Add a field annotation.BugInstance.addFieldOrMethodValueSource
(OpcodeStack.Item item) BugInstance.addFoundAndExpectedType
(String foundType, String expectedType) BugInstance.addFoundAndExpectedType
(org.apache.bcel.generic.Type foundType, org.apache.bcel.generic.Type expectedType) BugInstance.addInt
(int value) Add an integer annotation.BugInstance.addMethod
(JavaClassAndMethod classAndMethod) Add a method annotation.Add a MethodAnnotation from an XMethod.BugInstance.addMethod
(MethodDescriptor method) Add a MethodAnnotation from an MethodDescriptor.BugInstance.addMethod
(MethodAnnotation methodAnnotation) Add a method annotation.BugInstance.addMethod
(PreorderVisitor visitor) Add a method annotation for the method which the given visitor is currently visiting.Add a method annotation.Add a method annotation.BugInstance.addMethod
(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Add a method annotation.Add a method annotation.BugInstance.addOptionalAnnotation
(BugAnnotation annotation) BugInstance.addOptionalAnnotation
(BugAnnotation annotation, String role) BugInstance.addOptionalField
(XField xfield) Add a field annotation for an XField.BugInstance.addOptionalLocalVariable
(DismantleBytecode dbc, OpcodeStack.Item item) Local variable addersBugInstance.addOptionalUniqueAnnotations
(BugAnnotation... annotations) BugInstance.addOptionalUniqueAnnotationsWithFallback
(BugAnnotation fallback, BugAnnotation... annotations) BugInstance.addParameterAnnotation
(int index, String role) Add an annotation about a parameterBugInstance.addReferencedField
(FieldAnnotation fa) Add a field annotation for the field referenced by the FieldAnnotation parameterBugInstance.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) BugInstance.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.BugInstance.addSourceLine
(ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) Add source line annotation for given Location in a method.BugInstance.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.BugInstance.addSourceLine
(ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, String sourceFile, org.apache.bcel.generic.InstructionHandle handle) Add a source line annotation for the given instruction in the given method.BugInstance.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.BugInstance.addSourceLine
(BytecodeScanningDetector visitor) Add a source line annotation for instruction currently being visited by given visitor.BugInstance.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.BugInstance.addSourceLine
(MethodDescriptor methodDescriptor, Location location) Add source line annotation for given Location in a method.BugInstance.addSourceLine
(SourceLineAnnotation sourceLine) Add a source line annotation.BugInstance.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.BugInstance.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.BugInstance.addString
(char c) Add a String annotation.Add a String annotation.BugInstance.addSuperclass
(PreorderVisitor visitor) Add a class annotation for the superclass of the class the visitor is currently visiting.BugInstance.addType
(ClassDescriptor c) Add a type annotation.BugInstance.addType
(org.apache.bcel.generic.Type type) BugInstance.addTypeOfNamedClass
(String typeName) BugInstance.addUnknownSourceLine
(String className, String sourceFile) Add a non-specific source line annotation.BugInstance.addValueSource
(OpcodeStack.Item item, DismantleBytecode dbc) BugInstance.addValueSource
(OpcodeStack.Item item, org.apache.bcel.classfile.Method method, int pc) BugInstance.addVisitedField
(PreorderVisitor visitor) Add a field annotation for the field which is being visited by given visitor.Add a description to the most recently added bug annotation.SortedBugCollection.getMatching
(BugInstance bugInstance) BugCollection.lookupFromUniqueId
(String uniqueId) Deprecated.SortedBugCollection.lookupFromUniqueId
(String uniqueId) Deprecated.BugInstance.lowerPriorityIfDeprecated()
static BugInstance
Obfuscate.obfuscate
(BugInstance b) BugInstance.setProperty
(String name, String value) Set value of given property.Modifier 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()
Modifier and TypeMethodDescriptionvoid
BugAccumulator.accumulateBug
(BugInstance bug, ClassContext classContext, org.apache.bcel.classfile.Method method, Location location) void
BugAccumulator.accumulateBug
(BugInstance bug, ClassContext classContext, org.apache.bcel.generic.MethodGen methodGen, String sourceFile, Location location) void
BugAccumulator.accumulateBug
(BugInstance bug, BytecodeScanningDetector visitor) Accumulate a warning at source location currently being visited by given BytecodeScanningDetector.void
BugAccumulator.accumulateBug
(BugInstance bug, SourceLineAnnotation sourceLine) Accumulate a warning at given source location.boolean
BugCollection.add
(BugInstance bugInstance) Add a BugInstance to this BugCollection.boolean
BugCollection.add
(BugInstance bugInstance, boolean updateActiveTime) Add a BugInstance to this BugCollection.boolean
SortedBugCollection.add
(BugInstance bugInstance) Add a BugInstance to this BugCollection.boolean
SortedBugCollection.add
(BugInstance bugInstance, boolean updateActiveTime) void
ProjectStats.addBug
(BugInstance bug) Called when a bug is reported.void
PackageStats.addError
(BugInstance bug) protected void
TextUIBugReporter.checkBugInstance
(BugInstance bugInstance) For debugging: check a BugInstance to make sure it is valid.int
FuzzyBugComparator.compare
(BugInstance lhs, BugInstance rhs) int
SloppyBugComparator.compare
(BugInstance lhs, BugInstance rhs) int
SortedBugCollection.BugInstanceComparator.compare
(BugInstance lhs, BugInstance rhs) int
SortedBugCollection.MultiversionBugInstanceComparator.compare
(BugInstance lhs, BugInstance rhs) int
VersionInsensitiveBugComparator.compare
(BugInstance lhs, BugInstance rhs) int
WarningComparator.compare
(BugInstance lhs, BugInstance rhs) int
BugInstance.compareTo
(BugInstance other) boolean
SortedBugCollection.contains
(BugInstance bugInstance) void
ProjectPackagePrefixes.countBug
(BugInstance b) protected abstract void
AbstractBugReporter.doReportBug
(BugInstance bugInstance) Subclasses must override this.void
BugCollectionBugReporter.doReportBug
(BugInstance bugInstance) protected void
EmacsBugReporter.doReportBug
(BugInstance bugInstance) protected void
PrintingBugReporter.doReportBug
(BugInstance bugInstance) void
SortingBugReporter.doReportBug
(BugInstance bugInstance) void
XDocsBugReporter.doReportBug
(BugInstance bugInstance) static int
BugRanker.findRank
(BugInstance bug) SortedBugCollection.getMatching
(BugInstance bugInstance) Iterable
<? extends SourceLineAnnotation> BugAccumulator.locations
(BugInstance bug) boolean
ClassWarningSuppressor.match
(BugInstance bugInstance) boolean
FieldWarningSuppressor.match
(BugInstance bugInstance) boolean
MethodWarningSuppressor.match
(BugInstance bugInstance) boolean
PackageWarningSuppressor.match
(BugInstance bugInstance) boolean
ParameterWarningSuppressor.match
(BugInstance bugInstance) boolean
SuppressionMatcher.match
(BugInstance b) boolean
WarningSuppressor.match
(BugInstance bugInstance) protected void
AbstractBugReporter.notifyObservers
(BugInstance bugInstance) This should be called when a bug is reported by a subclass.static BugInstance
Obfuscate.obfuscate
(BugInstance b) protected void
EmacsBugReporter.printBug
(BugInstance bugInstance) protected void
TextUIBugReporter.printBug
(BugInstance bugInstance) Print bug in one-line format.protected void
XDocsBugReporter.printBug
(BugInstance bugInstance) boolean
SortedBugCollection.remove
(BugInstance bugInstance) final void
AbstractBugReporter.reportBug
(BugInstance bugInstance) void
BugAccumulator.reportBug
(BugInstance bug, edu.umd.cs.findbugs.BugAccumulator.Data d) void
BugReportDispatcher.reportBug
(BugInstance bugInstance) void
BugReporter.reportBug
(BugInstance bugInstance) Report a bug.void
BugReporterObserver.reportBug
(BugInstance bugInstance) Called when a BugReporter reports a bug.void
CategoryFilteringBugReporter.reportBug
(BugInstance bugInstance) void
DelegatingBugReporter.reportBug
(BugInstance bugInstance) void
ExcludingHashesBugReporter.reportBug
(BugInstance bugInstance) void
FilterBugReporter.reportBug
(BugInstance bugInstance) void
BugInstance.setHistory
(BugInstance from) void
XDocsBugReporter.toElement
(BugInstance bugInstance) Modifier and TypeMethodDescriptionvoid
SortedBugCollection.addAll
(Collection<BugInstance> collection) Add a Collection of BugInstances to this BugCollection object.void
SortedBugCollection.addAll
(Collection<BugInstance> collection, boolean updateActiveTime) Add a Collection of BugInstances to this BugCollection object.static void
SortedBugCollection.cloneAll
(Collection<BugInstance> dest, Collection<BugInstance> source) Clone all of the BugInstance objects in the source Collection and add them to the destination Collection.ModifierConstructorDescriptionSortedBugCollection
(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
Modifier and TypeMethodDescriptionvoid
MaxRankDecorator.reportBug
(BugInstance bugInstance) void
SuppressionDecorator.reportBug
(BugInstance bugInstance) -
Uses of BugInstance in edu.umd.cs.findbugs.config
Modifier and TypeMethodDescriptionboolean
ProjectFilterSettings.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
Modifier and TypeMethodDescriptionCheckExpectedWarnings.makeWarning
(String bugPattern, Object descriptor, int priority, ClassDescriptor cd) Deprecated.Modifier and TypeMethodDescriptionprotected void
AbstractAssertDetector.reportBug
(BugInstance bug) protected abstract void
BuildUnconditionalParamDerefDatabase.reportBug
(BugInstance bug) void
FindBugsSummaryStats.reportBug
(BugInstance bug) protected void
NoteUnconditionalParamDerefs.reportBug
(BugInstance bug) protected void
TrainUnconditionalDerefParams.reportBug
(BugInstance bug) Modifier and TypeMethodDescriptionvoid
CheckExpectedWarnings.checkAnnotation
(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
Modifier and TypeMethodDescriptionboolean
AndMatcher.match
(BugInstance bugInstance) boolean
AnnotationMatcher.match
(BugInstance bugInstance) boolean
BugMatcher.match
(BugInstance bugInstance) boolean
ClassMatcher.match
(BugInstance bugInstance) boolean
ConfidenceMatcher.match
(BugInstance bugInstance) boolean
FieldMatcher.match
(BugInstance bugInstance) boolean
Filter.match
(BugInstance bugInstance) boolean
FirstVersionMatcher.match
(BugInstance bugInstance) boolean
LastVersionMatcher.match
(BugInstance bugInstance) boolean
LocalMatcher.match
(BugInstance bugInstance) boolean
Matcher.match
(BugInstance bugInstance) Determine whether or not the given BugInstance has the feature this Matcher tests for.boolean
MethodMatcher.match
(BugInstance bugInstance) boolean
NotMatcher.match
(BugInstance bugInstance) boolean
OrMatcher.match
(BugInstance bugInstance) boolean
PriorityMatcher.match
(BugInstance bugInstance) boolean
RankMatcher.match
(BugInstance bugInstance) boolean
SourceMatcher.match
(BugInstance bugInstance) boolean
TypeMatcher.match
(BugInstance bugInstance) -
Uses of BugInstance in edu.umd.cs.findbugs.props
Modifier and TypeMethodDescriptionvoid
WarningPropertySet.decorateBugInstance
(BugInstance bugInstance) Decorate given BugInstance with properties.