Fixed PMD problem; made setLocale final.