Find bugs in Java Programs

Check it out on GitHub

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 Lesser GNU Public License.

SpotBugs is the spiritual successor of FindBugs, carrying on from the point where it left off with support of its community. Please check official manual site for details.

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.8.

Bug Descriptions

SpotBugs checks for more than 400 bug patterns. Bug descriptions can be found here

Descriptions are also available in Japanese

Using SpotBugs

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:

API [no frames]

Support or Contact

You can report issues on GitHub.

Or, you can contact us using our general purpose mailing list.