Changeset 10248 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2016-05-17T18:19:04+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/Command.java
r9371 r10248 63 63 public static class OldNodeState { 64 64 65 private final LatLon lat lon;65 private final LatLon latLon; 66 66 private final EastNorth eastNorth; // cached EastNorth to be used for applying exact displacement 67 67 private final boolean modified; … … 72 72 */ 73 73 public OldNodeState(Node node) { 74 lat lon = node.getCoor();74 latLon = node.getCoor(); 75 75 eastNorth = node.getEastNorth(); 76 76 modified = node.isModified(); … … 81 81 * @return old lat/lon 82 82 * @see Node#getCoor() 83 * @since 10248 83 84 */ 84 public final LatLon getLat lon() {85 return lat lon;85 public final LatLon getLatLon() { 86 return latLon; 86 87 } 87 88 … … 106 107 @Override 107 108 public int hashCode() { 108 return Objects.hash(lat lon, eastNorth, modified);109 return Objects.hash(latLon, eastNorth, modified); 109 110 } 110 111 … … 115 116 OldNodeState that = (OldNodeState) obj; 116 117 return modified == that.modified && 117 Objects.equals(lat lon, that.latlon) &&118 Objects.equals(latLon, that.latLon) && 118 119 Objects.equals(eastNorth, that.eastNorth); 119 120 } -
trunk/src/org/openstreetmap/josm/command/MoveCommand.java
r9371 r10248 218 218 for (Node n : nodes) { 219 219 OldNodeState os = it.next(); 220 n.setCoor(os.getLat lon());220 n.setCoor(os.getLatLon()); 221 221 n.setModified(os.isModified()); 222 222 } -
trunk/src/org/openstreetmap/josm/command/TransformNodesCommand.java
r9371 r10248 95 95 for (Node n : nodes) { 96 96 OldNodeState os = oldStates.get(n); 97 n.setCoor(os.getLat lon());97 n.setCoor(os.getLatLon()); 98 98 n.setModified(os.isModified()); 99 99 }
Note:
See TracChangeset
for help on using the changeset viewer.