Skip Links

Network World

  • Social Web 
  • Email 
  • Close

FindBugs analyzes Java code

Dr. Internet By Steve Blass , Network World , 02/26/2008
Steve Blass
Newsletter Signup
  • Share/Email
  • Tweet This
  • Comment
  • Print

I inherited project responsibility for maintenance and refinement of a Java application that works pretty well. However, I am unfamiliar with the code base and would like to find one or more tools to help review the code and identify potential bugs so that when we get the code into a source control system we will have an understanding of where to begin cleaning up the code.

FindBugs™ is a nice static analyzer that can identify a variety of bugs and potential bugs in Java code. Version 1.3.2 was released earlier this month and can be downloaded and installed locally or it can be launched via Java Web Start from the FindBugs page on sourceforge.net. The program can analyze class files and/or source files. When you launch the program and create a new project you are prompted to choose the path to the class archives and directories to analyze and for the path to the source files as well as the path to auxiliary classes that reside elsewhere. When you click the Finish button in the dialog the program analyzes your code and presents a tree-view listing the identified items organized by categories, such as Correctness, Performance, and others, including my favorite, Dodgy, where things like using static fields from instance methods are listed. As you select an item in the bug tree an explanation is provided in the text panel and if the source code was included in the project selections the appropriate line in the source code is highlighted. FindBugs quickly provides an overview of items you may want to address in your Java code.

  • Share/Email
  • Tweet This
  • Comment
  • Print
Partner Content

NetScout and analyst Jim Metzler have teamed to deliver a series of IT Briefs on Network and Application Performance Management leveraging research from NetScout's nGenius & Sniffer users.

www.netscout.com

Metzler on Service Delivery Management

Delivering IT business value by evolving our thinking from managing application performance to focusing on services.

Learn More

2009 Handbook of Application Delivery

Successful IT organizations must know how to make the right application delivery decisions in these tough economic times.

Download the Handbook

Metzler on the Modern IP Network

Discusses the growing emphasis on network management and the need to implement a holistic view of the end-to-end experience of the user.

Read the Brief

Comment
Login
Forgot your account info?
Add comment
Anonymous comments subject to approval. Register here for member benefits.
Have a NetworkWorld account? Log in here. Register now for a free account.

Videos

rssRss Feed