Static Code Analysis Tool – FireBugs

March 5, 2010

Java

What is FireBugs?

FindBugs is an open source program created by William Pugh which looks for bugs in Java code. It uses static analysis to identify hundreds of different potential types of errors in Java programs. FindBugs operates on Java bytecode,rather than source code. The software is distributed as a stand-alone GUI application. There are also plug-ins available for Eclipse, Netbeans, and IntelliJ IDEA

Official Website of FireBugs?

http://findbugs.sourceforge.net/

How to Install the Eclipse Plugin?

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

Demo & FAQ?

http://findbugs.sourceforge.net/demo.html / http://findbugs.sourceforge.net/FAQ.html

How does it work and how to use it?

a) After you install the eclipse plugin, restart eclipse.

b) Go to Window –> Show view –> other and select the find bug options available.

c) Open – perspective – Findbugs [Window –> open perspective–> findbugs]

c) Create a potential test class (with some obvious issues) like the following,

d) Initiate the find bugs by doing the following.

e) Now the errors get listed based on Project – Type – Package – Class – Priority – Category – Error – Location

f) Now you try to correct them

email

Comments

comments

Related posts:

  1. Static keyword in Java
  2. Sample code for SimpleDateFormat
  3. EJB Webservices in JBoss application server sample code
  4. Sample code for Listing file names in a directory
  5. Mixing Generics And Non-Generics Code

No comments yet.

Leave a Reply