Changeset 16862 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-08-10T23:19:02+02:00 (4 years ago)
Author:
simon04
Message:

GpxData: fix exception message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java

    r16553 r16862  
    591591    public synchronized void addWaypoint(WayPoint waypoint) {
    592592        if (privateWaypoints.stream().anyMatch(w -> w == waypoint)) {
    593             throw new IllegalArgumentException(MessageFormat.format("The route was already added to this data: {0}", waypoint));
     593            throw new IllegalArgumentException(MessageFormat.format("The waypoint was already added to this data: {0}", waypoint));
    594594        }
    595595        privateWaypoints.add(waypoint);
     
    604604    public synchronized void removeWaypoint(WayPoint waypoint) {
    605605        if (!privateWaypoints.removeIf(w -> w == waypoint)) {
    606             throw new IllegalArgumentException(MessageFormat.format("The route was not in this data: {0}", waypoint));
     606            throw new IllegalArgumentException(MessageFormat.format("The waypoint was not in this data: {0}", waypoint));
    607607        }
    608608        invalidate();
Note: See TracChangeset for help on using the changeset viewer.