fb-contrib™: A FindBugs™ auxiliary detector plugin
fb-contrib™ is an extra detector plugin to be used with the static bug
finder FindBugs™ (findbugs.sourceforge.net). Just download the fb-contrib.jar
file, and place it in the appropriate location based on how you wish to use it. (See below). FindBugs™ will
automatically pick up the jar file, and incorporate these detectors with its
fb-contrib can be used from the Findbugs™ Gui, Ant, or the eclipse plugin.
To run fb-contrib from the gui, or ant, just place the fb-contrib jar in the plugins directory inside of the
To run fb-contrib from eclipse, assuming that the main FindBugs plugin is installed,
simply drop the fb-contrib.jar in the plugins directory of eclipse, and restart eclipse.
The latest version of fb-contrib is 5.2.0 available for download
Detectors added in git
Detectors added in v5.2.0
- [CNC] Collection Naming Confusion
Looks for fields and local variables that have Map, Set, List in their names
but the variable is a collection of a different basic type.
- [PME] Poor Mans Enum
Looks for simple fields that only store one of several constant values. This usually is an indication
that this field should really be an enum type.
- [UP] Unused Parameter
Looks for private or static methods that have parameters that aren't used. These parameters
can be removed.
- [CD] Circular Dependencies
Looks for class dependencies that where two or more classes rely on each other, either directly or indirectly.
This often signifies an improper data model. Consider using interfaces to break this closed loop.
- [MUC] Modifying Unmodifiable Collection
Looks for code that attempts to modify a collection that is or may be
defined as immutable. for instance, being returned from Arrays.asList(). Doing so will cause exceptions at runtime.
Detectors added in v5.0.0
Detectors added in v4.8.0
Detectors added in v4.6.0
Detectors added in v4.4.0
Detectors added in v4.2.0
Detectors added in v4.0.0
Detectors added in v3.8.0
Detectors added in v3.6.0
Detectors added in v3.4.0
Detectors added in v3.2.0
Detectors added in v3.0.0
Detectors added in v2.8.0
Detectors added in v2.6.0
Detectors added in v2.4.0
Detectors added in v2.2.0
Detectors added in v2.0.0
Detectors added in v1.8.0
Detectors added in v1.6.0
Detectors added in v1.4.0
Detectors added in v1.2.0
Detectors added in v1.0.0
Detectors added in v0.9.3
fb-contrib is a trademark of MeBigFatGuy.com
FindBugs is a trademark of University of Maryland