Changeset 8404 in josm for trunk/src/org/openstreetmap/josm/gui/MainApplication.java
- Timestamp:
- 2015-05-21T01:18:35+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r8392 r8404 34 34 import java.util.LinkedList; 35 35 import java.util.List; 36 import java.util.Locale; 36 37 import java.util.Map; 37 38 import java.util.Set; … … 206 207 207 208 private Option(boolean requiresArgument) { 208 this.name = name().toLowerCase( ).replace("_", "-");209 this.name = name().toLowerCase(Locale.ENGLISH).replace("_", "-"); 209 210 this.requiresArg = requiresArgument; 210 211 } … … 229 230 Map<Option, Collection<String>> res = new EnumMap<>(Option.class); 230 231 for (Map.Entry<String, Collection<String>> e : opts.entrySet()) { 231 Option o = Option.valueOf(e.getKey().toUpperCase( ).replace("-", "_"));232 Option o = Option.valueOf(e.getKey().toUpperCase(Locale.ENGLISH).replace("-", "_")); 232 233 if (o != null) { 233 234 res.put(o, e.getValue()); … … 509 510 for (String s : args.get(Option.OFFLINE).iterator().next().split(",")) { 510 511 try { 511 Main.setOffline(OnlineResource.valueOf(s.toUpperCase( )));512 Main.setOffline(OnlineResource.valueOf(s.toUpperCase(Locale.ENGLISH))); 512 513 } catch (IllegalArgumentException e) { 513 514 Main.error(tr("''{0}'' is not a valid value for argument ''{1}''. Possible values are {2}, possibly delimited by commas.", 514 s.toUpperCase( ), Option.OFFLINE.getName(), Arrays.toString(OnlineResource.values())));515 s.toUpperCase(Locale.ENGLISH), Option.OFFLINE.getName(), Arrays.toString(OnlineResource.values()))); 515 516 System.exit(1); 516 517 return;
Note:
See TracChangeset
for help on using the changeset viewer.