Monday, November 16, 2009

FindBugs

FindBugs is an opensource static analysis tool that examines the java classes or JAR files for potential problems by matching the bytecodes against a list of bug patterns.

Unlike other static analysis tools,it doesn't focus on style or formatting; it specifically tries to find potential code error candidates.

FindBugs provides a plugin for Eclipse .Just copy the latest zip from http://findbugs.sourceforge.net/downloads.html and copy the extracted jar to Eclipse Plugin folder and restart Eclipse.

To Check if the Plugin has been installed,Right Click on the Project in the Project Explorer View and Find Bugs should be available in the Options.

To generate FindBugs report,just right click on the Project in the Project Explorer View select Find Bugs.This would analyse the code and generate the Report.