I strongly disagree with this rule because if-then statements should be written such that the nominal path is coded first, then the unusual case. (See Code Complete, Second Edition, chapter 15.1, page 355.)
Personally, I frequently disable this rule.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I recommend reading Bug 228: http://sourceforge.net/p/pmd/bugs/228/
I strongly disagree with this rule because if-then statements should be written such that the nominal path is coded first, then the unusual case. (See Code Complete, Second Edition, chapter 15.1, page 355.)
Personally, I frequently disable this rule.