SpotBugs is a program which uses static analysis to look for bugs in Java code. It is free software, distributed under the terms of the GNU Lesser General Public License.
SpotBugs requires JRE (or JDK) 1.8.0 or later to run. However, it can analyze programs compiled for any version of Java, from 1.0 to 1.9.
SpotBugs checks for more than 400 bug patterns. Bug descriptions can be found here
Descriptions are also available in Japanese
SpotBugs can be used standalone and through several integrations, including:
SpotBugs is extensible. New detectors can be added through plugins. Popular SpotBugs plugins include:
Or, you could create your own by checking the documentation:
License of SpotBugs Logo
Following SpotBugs Logos and Icons are licensed under CC BY 4.0.
Support or Contact
You can report issues on GitHub.
Or, you can contact us using our general purpose mailing list.