fix PMD warnings