Fix warning reported by PMD.