Changeset 8390 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java
- Timestamp:
- 2015-05-18T02:14:30+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java
r8366 r8390 46 46 private EastNorth eastNorthCoordinates; 47 47 48 private static final double ZERO = 0.0;48 private static final Double ZERO = 0.0; 49 49 private static final String DEG = "\u00B0"; 50 50 private static final String MIN = "\u2032"; … … 349 349 if (mXml.matches()) { 350 350 setLatLonObj(latLon, 351 Double. parseDouble(mXml.group(1).replace(',', '.')), ZERO, ZERO, "N",352 Double. parseDouble(mXml.group(2).replace(',', '.')), ZERO, ZERO, "E");351 Double.valueOf(mXml.group(1).replace(',', '.')), ZERO, ZERO, "N", 352 Double.valueOf(mXml.group(2).replace(',', '.')), ZERO, ZERO, "E"); 353 353 } else { 354 354 final Matcher m = P.matcher(coord); … … 360 360 if (m.group(1) != null) { 361 361 sb.append('R'); // floating point number 362 list.add(Double. parseDouble(m.group(1).replace(',', '.')));362 list.add(Double.valueOf(m.group(1).replace(',', '.'))); 363 363 } else if (m.group(2) != null) { 364 364 sb.append('Z'); // integer number 365 list.add(Double. parseDouble(m.group(2)));365 list.add(Double.valueOf(m.group(2))); 366 366 } else if (m.group(3) != null) { 367 367 sb.append('o'); // degree sign … … 373 373 sb.append(','); // separator 374 374 } else if (m.group(7) != null) { 375 sb.append( "x"); // cardinal direction375 sb.append('x'); // cardinal direction 376 376 String c = m.group(7).toUpperCase(); 377 377 if ("N".equals(c) || "S".equals(c) || "E".equals(c) || "W".equals(c)) {
Note:
See TracChangeset
for help on using the changeset viewer.