Changeset 32943 in osm for applications/editors/josm


Ignore:
Timestamp:
2016-09-08T00:21:08+02:00 (8 years ago)
Author:
donvip
Message:

see #josm13568 - fix deprecation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/DrawBuildingAction.java

    r32543 r32943  
    199199            n = null;
    200200        } else {
    201             n = Main.map.mapView.getNearestNode(mousePos, OsmPrimitive.isUsablePredicate);
     201            n = Main.map.mapView.getNearestNode(mousePos, OsmPrimitive::isUsable);
    202202        }
    203203        if (n == null) {
     
    276276        drawStartPos = mousePos;
    277277
    278         Node n = Main.map.mapView.getNearestNode(mousePos, OsmPrimitive.isUsablePredicate);
     278        Node n = Main.map.mapView.getNearestNode(mousePos, OsmPrimitive::isUsable);
    279279        if (n == null) {
    280280            building.setBase(latlon2eastNorth(Main.map.mapView.getLatLon(mousePos.x, mousePos.y)));
     
    362362        Node n = null;
    363363        if (!ctrl)
    364             n = Main.map.mapView.getNearestNode(mousePos, OsmPrimitive.isUsablePredicate);
     364            n = Main.map.mapView.getNearestNode(mousePos, OsmPrimitive::isUsable);
    365365        if (n != null) {
    366366            setCursor(cursorJoinNode);
Note: See TracChangeset for help on using the changeset viewer.