Changeset 8846 in josm for trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
- Timestamp:
- 2015-10-10T01:40:42+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r8540 r8846 151 151 } 152 152 153 return sDegrees + "\u00B0"+ sMinutes +"\'"+ sSeconds +"\"";153 return sDegrees + '\u00B0' + sMinutes + '\'' + sSeconds + '\"'; 154 154 } 155 155 … … 173 173 } 174 174 175 return sDegrees + "\u00B0"+ sMinutes +"\'";175 return sDegrees + '\u00B0' + sMinutes + '\''; 176 176 } 177 177 … … 325 325 NumberFormat nf = NumberFormat.getInstance(); 326 326 nf.setMaximumFractionDigits(5); 327 return "lat=" + nf.format(lat()) + "\u00B0, lon=" + nf.format(lon()) + "\u00B0";327 return "lat=" + nf.format(lat()) + "\u00B0, lon=" + nf.format(lon()) + '\u00B0'; 328 328 } 329 329 … … 370 370 } 371 371 372 @Override public String toString() { 373 return "LatLon[lat="+lat()+",lon="+lon()+"]"; 372 @Override 373 public String toString() { 374 return "LatLon[lat="+lat()+",lon="+lon()+']'; 374 375 } 375 376
Note:
See TracChangeset
for help on using the changeset viewer.