fixed a PMD warning