Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is the best tool for finding bugs in the Java code? [closed]

I would like to know which tool is best for finding any kind of bugs in my code. I know this may be some what theoretical or never ending question so I would like to modify it in terms of the efficiency of bug reporting (including the naming convention as well). So you can say which tool reports and maximum bugs and if effectively used in the industry? I heard about findbug is it really good?

like image 828
amod Avatar asked Sep 06 '11 14:09

amod


2 Answers

FindBugs is probably one of the most prominent ones and well worth a try.

For naming conventions etc, I'd suggest you have a look at CheckStyle.

like image 159
aioobe Avatar answered Nov 15 '22 08:11

aioobe


Findbugs is quite good. However, I would recommend using sonar to maintain code quality. http://www.sonarsource.org/ It integrates well with maven (sonar:sonar). Other than this I believe the use of maven site to create checkstyle, pmd, findbugs et-all report also helps keep the developers on toes.

like image 30
Scorpion Avatar answered Nov 15 '22 07:11

Scorpion