Fixed all PMD errors and turn ON fail on error