When doing a String.toLowerCase()/toUpperCase() call, use a Locale. This avoids problems with certain locales, i.e. Turkish.class Foo { // BAD if (x.toLowerCase().equals("list"))... /* This will not match "LIST" when in Turkish locale The above could be if (x.toLowerCase(Locale.US).equals("list")) ... or simply if (x.equalsIgnoreCase("list")) ... */ // GOOD String z = a.toLowerCase(Locale.EN); }Additional info can be found at this http://pmd.sourceforge.net/rules/design.html#UseLocaleWithCaseConversions site.
| 1 | org.jcoderz.phoenix.sqlparser.SqlTransformer |
| [282:47] | |