Changeset 16862 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-08-10T23:19:02+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
r16553 r16862 591 591 public synchronized void addWaypoint(WayPoint waypoint) { 592 592 if (privateWaypoints.stream().anyMatch(w -> w == waypoint)) { 593 throw new IllegalArgumentException(MessageFormat.format("The routewas already added to this data: {0}", waypoint));593 throw new IllegalArgumentException(MessageFormat.format("The waypoint was already added to this data: {0}", waypoint)); 594 594 } 595 595 privateWaypoints.add(waypoint); … … 604 604 public synchronized void removeWaypoint(WayPoint waypoint) { 605 605 if (!privateWaypoints.removeIf(w -> w == waypoint)) { 606 throw new IllegalArgumentException(MessageFormat.format("The routewas not in this data: {0}", waypoint));606 throw new IllegalArgumentException(MessageFormat.format("The waypoint was not in this data: {0}", waypoint)); 607 607 } 608 608 invalidate();
Note:
See TracChangeset
for help on using the changeset viewer.