fb-contrib is a bug detector plugin for the FindBugs application (findbugs.sourceforge.net).
This release adds four detectors that can easily be integrated into FindBugs by dropping the jar file into FindBugs' plugin directory. fb-contrib version 4.6.0 requires FindBugs version 1.1.0 or later. This version of fb-contrib uses java 1.5.
New Detectors added in this release:
Suspicious Null Guard
Looks for code that checks to see if a field or local variable is not null before entering a code block either an if, or while statement, and reassigns that field or variable. It seems that perhaps the guard should check if the field or variable is null.
Possible Unsuspected Serialization
Looks for serialization of non-static inner classes. As this serializes the enclosing class, it may unintentionally bring in more to the serialization than is wanted.
Side Effect Constructor
Looks for constructors that operate through side effects, specifically constructors that aren't assigned to any variable or field. This makes the code more difficult to maintain as it has a tendency to increase cohesion between classes.
Suspicious Getter Setter Use
Looks for the setting of a java bean property with a value retrieved from the same bean's getter method for that property. This is usually a copy/paste typo.