pmd/pmd — pull request #25 by larrydiamond (2013-10-17 19:45:24+00:00)
Title: I have created a new rule PositionLiteralsFirstInCaseInsensitiveComparisons for java in design.xml

I've attempted to fill in everything the way I think it's expected to be done. Please excuse any mistakes or omissions I have made. This is my first time using Github or submitting code to PMD so I freely admit to not knowing all the correct history on how to make changes.

I also freely admit to thoroughly copying and modifying the already great and effective working rule PositionLiteralsFirstInComparisons.

This code compiles to success using mvn clean package

Some of the otherwise great developers I work with know all about avoiding the java NullPointerException you can get if you dont position literals first in comparisons.
PMD already has the very effective rule PositionLiteralsFirstInComparisons in design.xml

Where my colleagues have missed it is in doing the same thing for equalsIgnoreCase.
It suffers from the same problem as equals does in this situation - if that variable is null you get the same NullPointerException.