Fixed jenkins PMD warnings