Ignore:
Timestamp:
2016-08-03T15:30:04+02:00 (8 years ago)
Author:
simon04
Message:

see #11390, see #12890 - Deprecate predicates in OsmPrimitive class

Location:
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddNodeHandler.java

    r10615 r10716  
    8686        if (Main.isDisplayingMapView()) {
    8787            Point p = Main.map.mapView.getPoint(ll);
    88             node = Main.map.mapView.getNearestNode(p, OsmPrimitive.isUsablePredicate);
     88            node = Main.map.mapView.getNearestNode(p, OsmPrimitive::isUsable);
    8989            if (node != null && node.getCoor().greatCircleDistance(ll) > Main.pref.getDouble("remotecontrol.tolerance", 0.1)) {
    9090                node = null; // node is too far
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java

    r10615 r10716  
    127127        if (Main.isDisplayingMapView()) {
    128128            Point p = Main.map.mapView.getPoint(ll);
    129             nd = Main.map.mapView.getNearestNode(p, OsmPrimitive.isUsablePredicate);
     129            nd = Main.map.mapView.getNearestNode(p, OsmPrimitive::isUsable);
    130130            if (nd != null && nd.getCoor().greatCircleDistance(ll) > Main.pref.getDouble("remote.tolerance", 0.1)) {
    131131                nd = null; // node is too far
Note: See TracChangeset for help on using the changeset viewer.