FindBugs is an open source Java Static Code analysis tool provided by the University of Maryland. FindBugs by examining a class file or jar file, the bytecode is compared to a set of defect patterns to uncover code flaws and complete static code analysis. The findbugs provides both a visual UI interface and can be used as an eclipse plugin. The text will primarily use findbugs as the Eclipse plugin. After the installation succeeds, the FindBugs perspective is added to eclipse, and the user can run FindBugs on the specified Java class or jar file, where FindBugs traverses the specified file for static code analysis.
Installation steps:
1. Click "Help->installnew Software", such as:
2. Click "Add", then enter "FindBugs" in the Popup "Name", "Location" enter "http://findbugs.cs.umd.edu/eclipse", click "OK", such as:
3. Select the corresponding plugin and click "Next->next->finish".
4. After the installation is complete, restart Eclipse, right-click on the project file or directory, you will find more findbugs menu, such as:
Of course, you can also download it directly from http://osdn.jp/projects/sfnet_findbugs/releases/, then copy the file to your local eclipse's plugins directory and restart Eclipse.
Eclipse Install FindBugs Plugin