Changeset 5510 in josm for trunk/src/org
- Timestamp:
- 2012-09-13T10:58:37+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java
r5135 r5510 12 12 import java.util.Iterator; 13 13 import java.util.LinkedList; 14 import java.util.Locale; 14 15 import java.util.Map; 15 16 import java.util.Stack; … … 189 190 if (fieldName.startsWith(lang)) { 190 191 int l = lang.length(); 191 fieldName = "set" + fieldName.substring(l, l + 1).toUpperCase( ) + fieldName.substring(l + 1);192 fieldName = "set" + fieldName.substring(l, l + 1).toUpperCase(Locale.ENGLISH) + fieldName.substring(l + 1); 192 193 } else { 193 fieldName = "set" + fieldName.substring(0, 1).toUpperCase( ) + fieldName.substring(1);194 fieldName = "set" + fieldName.substring(0, 1).toUpperCase(Locale.ENGLISH) + fieldName.substring(1); 194 195 } 195 196 Method m = entry.getMethod(fieldName);
Note:
See TracChangeset
for help on using the changeset viewer.