fix findbugs and pmd violation