IBM has an article about FindBugs which is a static code analyzer that tries to locate patterns of common bugs in your code. It’s available as a Eclipse plugin amongst other things.
I’m going to try to load it up tomorrow and run it on one of my projects.