Fixed Checkstyle and PMD errors.