fix checkstyle and findbugs errors