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/mappaint/MapPaintStyles.java

    r8394 r8404  
    287287            if (zipEntryPath != null)
    288288                return new XmlStyleSource(entry);
    289             if (entry.url.toLowerCase().endsWith(".mapcss"))
     289            if (Utils.hasExtension(entry.url, "mapcss"))
    290290                return new MapCSSStyleSource(entry);
    291             if (entry.url.toLowerCase().endsWith(".xml"))
     291            if (Utils.hasExtension(entry.url, "xml"))
    292292                return new XmlStyleSource(entry);
    293293            else {
Note: See TracChangeset for help on using the changeset viewer.