tool
purpose
Check Item
FindBugs
Check the .class
Based Bug Patterns concept and look javabytecode (.class file) in a potential bug
Mainly the bytecode in bug patterns, such as a null pointer NullPoint inspection, there is no reasonable close the resource, misjudged character strings (== instead of the equals), etc.
PMD
Check the source file
Potential problems checked Java source file
mainly includes:
Empty try / catch / finally / switch statement block
Unused local variables, parameters and private methods
Empty if / while statement
Overly complex expressions, such as unnecessary if statements, etc.
Complex class
CheckStyle
Check the source file
The main concern Format
Check if the Java source file matches the code specifications
mainly includes:
Javadoc comments
Naming conventions
Imports extra useless
Size measure, as long Method
Lack of necessary space Whitespace
Repeat Code