I was investigating about a good tool for profiling when I met with findbugs.
To be honest I found discussion about this tool in a thread of jug milano mailing list.
findbugs is a free software which looks for bugs in Java code.
In order to execute this program is enough you have installed on your machine Java Web Start. Thereby try to click here , after set parameter of your project (src, jar, etc) and finally push on ‘Find Bugs’ button.
I was amazed at how many bugs it found like comparison of String objects using == or != instead of using equals() method.
By the way…I didn’t generate that code :-)
findbugs to discover bugs
Enrico Giurin|17 maggio 2006