Ignore:
Timestamp:
2022-06-14T20:11:21+02:00 (3 years ago)
Author:
taylor.smock
Message:

see #22104: Remove usages of Node#getCoor where possible

This also accounts for cases where Node has the methods used later,
so a new LatLon is unnecessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/comfort0/src/net/simon04/comfort0/OsmToLevel0L.java

    r35585 r35976  
    33import java.util.Collection;
    44
    5 import org.openstreetmap.josm.data.coor.LatLon;
     5import org.openstreetmap.josm.data.coor.ILatLon;
    66import org.openstreetmap.josm.data.osm.DefaultNameFormatter;
    77import org.openstreetmap.josm.data.osm.KeyValueVisitor;
     
    7979        sb.append(p.getType().getAPIName()).append(" ").append(p.getUniqueId());
    8080        if (p instanceof Node) {
    81             final LatLon latLon = ((Node) p).getCoor();
    82             if (latLon != null) {
     81            final ILatLon latLon = (Node) p;
     82            if (latLon.isLatLonKnown()) {
    8383                sb.append(": ").append(latLon.lat()).append(", ").append(latLon.lon());
    8484            }
Note: See TracChangeset for help on using the changeset viewer.