magpiebrain

Sam Newman's site, a Consultant at ThoughtWorks

“FindBugs”:http://www.cs.umd.edu/~pugh/java/bugs/ is a Java tool which aims to find possible bugs in your code. I use “Eclipse’s”:http://www.eclipse.org/ own code checker and the Eclipse “Checkstyle”:http://checkstyle.sourceforge.net/ “plugin”:http://eclipse-cs.sourceforge.net/ for this purpose, although it seems that Findbugs may pickup some things these tools don’t, such as:

  • Places where a null pointer might be dereferenced
  • I/O streams that are opened, do not escape the method, and are not closed on all paths out of the method
  • Methods that can return null instead of a zero-length array
  • Using the == or != operators to compare String objects

I might try runing it on my code base and see if it picks anything up…

One Response to “FindBugs – Java code checker”

  1. manjunath a s

    respected sir
    i want to know how to develop a tool in c#
    regarding code checker

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Basic HTML is allowed. Your email address will not be published.

Subscribe to this comment feed via RSS

%d bloggers like this: