Fixing a pmd warning