Ignore:
Timestamp:
2015-05-21T01:18:35+02:00 (9 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/gui/widgets/MultiSplitLayout.java

    r8390 r8404  
    3838import java.util.List;
    3939import java.util.ListIterator;
     40import java.util.Locale;
    4041import java.util.Map;
    4142
     
    11881189                    throwParseException(st, "invalid node type");
    11891190                }
    1190                 String nodeType = st.sval.toUpperCase();
     1191                String nodeType = st.sval.toUpperCase(Locale.ENGLISH);
    11911192                if ("LEAF".equals(nodeType)) {
    11921193                    parseLeaf(st, parent);
Note: See TracChangeset for help on using the changeset viewer.