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/trustosm/src/org/openstreetmap/josm/plugins/trustosm/data/TrustNode.java

    r33869 r35976  
    2525
    2626    public static String generateNodeSigtext(Node node) {
    27         LatLon point = node.getCoor();
    2827        String sigtext = node.getUniqueId() + "(";
    29         sigtext += DecimalDegreesCoordinateFormat.INSTANCE.latToString(point) + ",";
    30         sigtext += DecimalDegreesCoordinateFormat.INSTANCE.lonToString(point) + ")";
     28        sigtext += DecimalDegreesCoordinateFormat.INSTANCE.latToString(node) + ",";
     29        sigtext += DecimalDegreesCoordinateFormat.INSTANCE.lonToString(node) + ")";
    3130        return sigtext;
    3231    }
Note: See TracChangeset for help on using the changeset viewer.