A good Java BUG checking tool

Source: Internet
Author: User

According to a friend, I found a good Java environment error checking tool findBugs.
This tool is really great. I used this tool to find some small bugs in my code. After all, people are human, and they make mistakes. The tool is better than people. Surprisingly, this tool checks bugs that may cause Connection, Statement, ResultSet, and other resource classes to forget to close. This feature is particularly powerful. For example:

Conneciton conn = ...;
Statement stmt = conn. createStatement ();
ResultSet rs = stmt.exe cuteQuery (SQL );

Such code may cause resource leakage in case of exceptions. FindBugs can check bugs that may occur when exceptions occur. It is really strong.

Here is an introduction:
Http://www-900.ibm.com/developerWorks/cn/java/j-findbug1/index.shtml
Http://www-900.ibm.com/developerWorks/cn/java/j-findbug1/index.shtml

Download:
Http://findbugs.sourceforge.net/

Suggestion: Use findBugs to check your code immediately.

Java is an open world with many open resources, such as junit, log4j, ant, hibernate, findBugs, and open for business. Embrace Java and openness !!

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.