Eclipse Plugin: findbugs

Source: Internet
Author: User

Findbugs is used to locate code bugs;

Installation Method: Go to eclipse marketplace to query findbugs for installation;

Perspective: Findbugs
View: Bug explorer, bug info, bug reviews

Bug explorer is used to display an overview of all errors;
The bug info is used to display the specific information of each bug;

If you want to use findbugs, you only need to right-click the source code interface and find "find bugs" --> "find bugs". Then we can go to findbugs perspective;

The following code is used as an example:

Import Java. io. fileinputstream; import Java. io. filenotfoundexception; import Java. io. inputstream; public class test1 {public static void main (string [] ARGs) throws filenotfoundexception {// 1. inputstream in = new fileinputstream (ARGs [0]); // 2. string comparison bugstring str1 = "ABC"; string [] STR = new string [] {"ABC", "CDE"}; system. out. println (str1.equals (STR ));}}

The following bugs will be found in bug Explorer:

The specific causes of each bug are described in bug info:

Related Article

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.