Install and use FindBugs and install and use FindBugs

Source: Internet
Author: User

Install and use FindBugs and install and use FindBugs

Previously, the FindBugs plug-in was also used in university projects. The task assigned today is to optimize the original code. The first reaction is of course to help yourself with the tools. So I started to install and use FindBugs. I would like to share it with you here, hoping to help you with the children's shoes you need.

First, install FindBugs. It is said that FindBugs has its own visual UI, but I still like using Eclipse plug-ins.

I believe everyone is familiar with installing the Eclipse plug-in. I encountered some minor problems when installing the service again: the installation address provided on the Internet always prompts no results. After some searches, the official website provided three address backups:

Http://findbugs.cs.umd.edu/eclipse

Http://findbugs.cs.umd.edu/eclipse-candidate

Http://findbugs.cs.umd.edu/eclipse-daily

I cannot find the content when I use the first search, and the second and third search are acceptable.

After the installation is complete, restart Eclipse and find that the findbugs trace is not found. Why?

It turns out that the new version of FindBugs is automatically installed through the web site, while the new version of FindBugs requires higher jdk support. The findbugs I installed is version 3.0, jdk 1.7 or above is required. If this happens, you can try a later version of jdk.


After the installation is complete, it is relatively easy to use.

When you click the project file or directory, you will find that the Findbugs menu is missing, for example:


After you click "OK", the analysis result is displayed. FindBugs divides the problem into four levels based on the severity of the problem. Each level is also categorized by category, which is very convenient, try it!




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.