Package edu.umd.cs.findbugs
package edu.umd.cs.findbugs
Main package for the FindBugs application - contains the engine class
(
FindBugs
), the object model classes for bug
instances (BugInstance
,
BugAnnotation
), and other miscellany.-
ClassDescriptionAn abstract class which provides much of the functionality required of all BugReporter objects.Add human-readable messages to a dom4j tree containing FindBugs XML output.An implementation of org.apache.bcel.util.Repository that uses the AnalysisCache as its backing store.Object recording a recoverable error that occurred during analysis.Deprecated.This class is not necessary to realize multi-thread model in SpotBugs 4.0.A version of an analyzed application.Accumulate warnings that may occur at multiple source locations, consolidating them into a single warning.An object providing context information about a particular BugInstance.Utility methods for BugAnnotation classes.A BugCategory object collects all of the metadata for a category of bugs.A BugCode is an abbreviation that is shared among some number of BugPatterns.An instance of a bug pattern.A BugPattern object collects all of the metadata for a particular species of BugInstance.Name/value metadata pair that may be attached to a BugInstance.Smaller value is scarierBug rankers are used to compute a bug rank for each bug instance.Bug reporter delegate actual operation to each bug reporter in the list.Generic interface for bug reporter objects.Observer to determine when a BugReporter reports a bug.A base class for bug detectors that are based on a ByteCodePattern.Base class for Detectors which want to extend DismantleBytecode.The site of a method call.Filter reported warnings by category.Check that the BCEL classes present seem to be the right ones.A BugAnnotation object specifying a Java class involved in the bug.Class to pre-screen class files, so that only a subset are analyzed.Implementation of the UI callback for command line sessions.A BugReporter which delegates all method calls to another BugReporter.The interface which all bug pattern detectors must implement.Detector interface for new bytecode-framework-neutral architecture.A DetectorFactory is responsible for creating instances of Detector objects and for maintaining meta-information about the detector class.Predicate for choosing DetectorFactory objects.The DetectorFactoryCollection stores all of the DetectorFactory objects used to create the Detectors which implement the various analyses.An adapter allowing classes implementing the Detector interface to support the new Detector2 interface.Based on the contents of the application directories/archives in a Project, and a "root" source directory (under which some number of "real" source directories may be located), scan to find the source directories containing the application's source files.Progress callback interface for reporting the progress of source directory discovery.BugReporter to output warnings in Emacs format.A delegating bug reporter which counts reported bug instances, missing classes, and serious analysis errors.Flags returned in the process exit code returned when the FindBugs text UI is invoked with the -exitcode command line argument.A fatal exception which should completely halt the FindBugs analysis.A BugAnnotation specifying a particular field in particular class.Static methods and fields useful for working with instances of IFindBugsEngine.FindBugs driver class.Boolean-valued analysis properties for FindBugs.Base class for FindBugs command line classes.Format the message for a BugInstance.A callback that may be installed in a FindBugs instance to asynchronously keep track of its progress.A Detector that can be run in the first pass.Class to maintain a snapshot of a processes's time and memory usage.Wrapper so that possible NoClassDefFoundError can be caught.Wrapper so that possible NoClassDefFoundError can be caught.Wrapper so that possible NoClassDefFoundError can be caught.A slightly more intellegent way of comparing BugInstances from two versions to see if they are the "same".Singleton responsible for returning localized strings for information returned to the user.Screen class files to decide which subset of them to analyze.Interface for a FindBugs engine class.Interface for any kind of GUI attached to the current FindBug analysisA scanner for implementing a state machine over a sequence of instructions and control edges.Drive an InstructionScannerGenerator over the instructions of a simple path.Class for generating InstructionScanners at particular instructions of a path.Bug annotation class for integer values.Detector implementing a slow first pass to collect interprocedural properties for a later detector pass.Support for finding out what version of Java we're running on.Exception indicating that a Java version string couldn't be parsed.Class to launch the appropriate textUI or GUI.Bug annotation class for local variable namesA BugAnnotation specifying a particular method in a particular class.Deprecated.Signals that FindBugs found no classes on the classpath it was invoked to analyze.A Detector which does not report warnings.tracks the types and numbers of objects that are currently on the operand stack throughout the execution of method.You can put this annotation on a OpcodeStack detector to indicate that it uses
OpcodeStack.Item.userValue
, and thus should not reuse generic OpcodeStack information from an iterative evaluation of the opcode stack.A type qualifier to markint
value as SpecialKind type.Abstract base class for BugAnnotations describing constructs which are contained in a Java package.A FindBugs plugin.An exception to indicate that a plugin could not be loaded.Loader for a FindBugs plugin.A simple BugReporter which simply prints the formatted message to the output stream.A project in the GUI.Statistics resulting from analyzing a project.Recursively search a directory, its subdirectories, etc.ResourceCollection<Resource>A ResourceCollection defines all of the resources created and used in a particular method.A resource creation point.ResourceTrackingDetector<Resource,ResourceTrackerType extends ResourceTracker<Resource>> Abstract implementation of a Detector to find methods where a particular kind of created resource is not cleaned up or closed properly.Build a BugCollection based on SAX events.Build a call graph of the self calls in a class.Show command line help.Very sloppy bug comparator: if the warnings are of the same type, and in the same class/method/field, assume they are the same.An implementation ofBugCollection
that keeps the BugInstances sorted by class (using the native comparison ordering of BugInstance's compareTo() method as a tie-breaker).A BugReporter which stores all of the reported bug instances, and sorts them by class name before printing them.A BugAnnotation that records a range of source lines in a class.is a marker interface for detectors that don't save state from one class file to the next.Bug annotation class for string values.Base class for BugReporters which provides convenient formatting and reporting of warnings and analysis errors.Helper class to parse the command line and configure the IFindBugsEngine object.Display FindBugs progress in the terminal window using ASCII codes.Simple token class.A simple tokenizer for Java source text.Interface to mark Detector classes which are used only as a training pass.Bug annotation class for java types.A marker interface for detectors which use an AnnotationDatabase.Version number and release date information.Compare bug instances by only those criteria which we would expect to remain constant between versions.BugReporter to output warnings in xdocs format for Maven.Report warnings as an XML document.Write an object to XMLOutput while optionally adding descriptive messages.