Find the Java Bugs That Pose a Threat With FindBugs
FindBugs is an open-source static analysis tool designed to find bugs in one's Java code. Unlike many other static analysis tools, however, FindBugs concentrates almost exclusively on isolating potentially dangerous coding errors that could break the application. This powerful tool can find subtle yet dangerous bugs that other static analysis tools will not detect. FindBugs works by searching compiled Java bytecode for what it calls "Bug patterns." Simply put, a bug pattern is a coding practice that often leads to bugs. Bug patterns are based on the observation that people tend to reproduce the same errors, both individually and collectively.