Get code coverage with <a href="http://www.jacoco.org/jacoco/">JaCoCo</a>.
Checkstyle is a code analyser to help programmers write Java code that adheres to a coding standard.