I am looking for a tool which can spot suspect code in Java applications. This could include dead code, variables (global and local) declared but not used, unused methods, etc. Java is much stronger than C, of course, but there are still gotchas and I'd like to find these upfront.
This would have to run under HPUX. Jlint suffers from typical lint output overload. It also does not recognize dynamic arrays. Is it the best lint tool around?