What is FindBugs?
FindBugs is a static analysis tool that finds bugs in Java programs . It compares the bytecode to a set of defect patterns by examining the class or jar file to identify possible problems. With the static analysis tool, you can analyze the software without actually running the program, and find some potential hidden problems that are hard to find by humans.
2. How do I install findbugs?
The FindBugs plug-in integrates well with Eclipse and downloads the findbugs plugin from the FindBugs website . Currently the latest version is 3.0, after downloading the extracted files (such as edu.umd.cs.findbugs.plugin.eclipse_3.0.0.20140706-2cfb468) copied to the $eclipse_home/plugins/directory , restart Eclipse to take effect.
3. How do I use findbugs?
Right-click on the project to select "Find Bugs"--"Find Bugs", start the Find Bugs, run in the background.
Select "Windows"-"Show View"-"other", locate "Bug Explorer" under FindBugs and select "OK".
4. How do I view the bugs in the code?
In Bug Explorer, you can see the results of the check shown, and double-click each result to automatically jump to the corresponding code.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/9A/wKiom1S07aqgGGCnAAN2_whHft0270.jpg "style=" float: Left; "title=" Findbugs.png "alt=" Wkiom1s07aqgggcnaan2_whhft0270.jpg "/>
This article is from the "Dust Wind with the Sky" blog, please be sure to keep this source http://favccxx.blog.51cto.com/2890523/1603648
Java Code Bug Analysis plugin-findbugs