Fixed Checkstyle and Findbugs errors.