Original: Https://www.oschina.net/p/findbugs
FindBugs is an Eclipse plug-in tool that can statically parse the source code for possible bugs. It examines the class or JAR file and compares the bytecode to a set of defect patterns to identify possible problems. With the static analysis tool, you can analyze the software without actually running the program. Rather than determining the intent of a program by parsing the form or structure of a class file, you typically use the Visitor pattern.
After downloading, copy the unfrozen files to the $ECLIPSE _home/plugins/directory and restart ECLIPSE to complete the installation.
Settings for FindBugs:
Once installed, you can set it up by Projects > property > FindBugs tags. The Setup method can be adjusted to suit your needs.
In addition, in the filter settings of the problem (Proplems) List window (Windows > Views > Issues), check the findbugs options.
FindBugs to execute:
Select your project, right-click > Find Bugs > Find Bugs Execute
Java Code Bug Analysis plugin FindBugs