fix checkstyle and PMD