Ignore:
Timestamp:
2015-05-21T01:18:35+02:00 (4 years ago)
Author:
Don-vip
Message:

When doing a String.toLowerCase()/toUpperCase() call, use a Locale. This avoids problems with certain locales, i.e. Lithuanian or Turkish. See PMD UseLocaleWithCaseConversions rule and String.toLowerCase() javadoc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r8255 r8404  
    1111import java.util.HashMap;
    1212import java.util.HashSet;
     13import java.util.Locale;
    1314import java.util.Map;
    1415import java.util.Set;
     
    133134     */
    134135    public static String getInit(String id) {
    135         Pair<String, String> r = inits.get(id.toUpperCase());
     136        Pair<String, String> r = inits.get(id.toUpperCase(Locale.ENGLISH));
    136137        if (r == null) return null;
    137138        return r.b;
Note: See TracChangeset for help on using the changeset viewer.