Fixed checkstyle, findbugs, pmd warnings.