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/corrector/ReverseWayTagCorrector.java

    r8379 r8404  
    88import java.util.HashMap;
    99import java.util.List;
     10import java.util.Locale;
    1011import java.util.Map;
    1112import java.util.regex.Matcher;
     
    7576
    7677            if (m.lookingAt()) {
    77                 String leftRight = m.group(2).toLowerCase();
     78                String leftRight = m.group(2).toLowerCase(Locale.ENGLISH);
    7879
    7980                StringBuilder result = new StringBuilder();
Note: See TracChangeset for help on using the changeset viewer.