Java Code Bug Analysis plugin-findbugs

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.