Code review helps to improve the code quality and avoid runtime failures resulting from poor coding practices. It can also give you a chance to modify your code for simplicity, better exception handling, readability and easy maintenance. Most importantly, I found while explaining my code to someone, as part of code review, I myself got to know many things that could be improved.
But over the time developers feel code review as one of the most boring activity of a Java project. Reviewing thousands of lines of somebody else’s code proves to be the real pain. To make matter worse, code reviews are typically constrained by tight project deadlines thus leaving less time for detailed evaluation of code. Hence, code reviews often become just an exercise in code beautification. To resolve the problem some aspect of code review has been automated via tools and one such solution is tools for Static Code Analysis.