Correct checkstyle and pmd