If you go to the Eclipse Preferences → PMD → Rule settings and uncheck the box and double-check all the checkboxes for the rules and click “Apply”, the Eclipse Rules Settings dialog box will appear. Do you want to make a complete overhaul? "
If yes, try using PMD to check this code
public class BadClass { public void badMethod() { try { String bad = ""; } catch (Exception e) { } } }
This should display many PMD errors. If this is not the case, can you find the pmd-eclipse.log file in the Eclipse directory and publish its contents?

source share