Fixed pmd errors using default ruleset