Tuesday 24 May 2011

Improve the quality of your code using Find Bugs [configuration and reports in Eclipse]

What is FindBugs?

FindBugs is a static analysis tool that examines your class or JAR files looking for potential problems by matching your bytecodes against a list of bug patterns. With static analysis tools, you can analyze software without actually running the program. Instead the form or structure of the class files are analyzed to determine the program's intent, often using the Visitor pattern.

Please find information below on how to configure and use find bugs in our eclipse.

For more details please refer link. http://findbugs.sourceforge.net/manual/eclipse.html


A:Steps to configure FindBugs in our eclipse

Step-1) From Eclipse help menu open "Install new Software" menu item.









Step-2) Click on Add site and fill following site details and hit ok button.







Step-3) Select "FindBugs" for installation.






.


Step-4) Accept licence conditions – Click finish








B:How to use FindBugs in our eclipse

Step-1) Select java file/package/project and right click to select find bugs. Now it will generate bugs report.









Step-2)Report will be generated like below.











Step-3) To see generated report go to view shown below.










Happy coding :) :) :)

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Walgreens Printable Coupons