Tools for finding possible problems in code
Is there any tools, that find and report possible problems (deadlocks/null pointer开发者_StackOverflows/etc) in a java code? Maybe an Eclipse plugin?
Yes, here are some popular, free and open source static code checking tools for Java:
- FindBugs
- PMD
- Checkstyle
i use http://findbugs.sourceforge.net/ and it works very well. of course it won't find all problems but stuff like potential null pointers, potential synchronization issues etc are all covered. it comes as an eclipse plugin that integrates with the 'markers' view (the one that shows you problems)
You could look on these too:
- JDepend
- Emma - For unit test coverage %
- Same - For check duplicated code
精彩评论