Changeset 32827 in osm for applications/editors/josm


Ignore:
Timestamp:
2016-08-18T03:26:38+02:00 (8 years ago)
Author:
donvip
Message:

remove calls to deprecated predicates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RelationEditMode.java

    r32456 r32827  
    4747    @Override
    4848    public void mouseMoved(MouseEvent e) {
    49         Way nearestWay = Main.map.mapView.getNearestWay(e.getPoint(), OsmPrimitive.isUsablePredicate);
     49        Way nearestWay = Main.map.mapView.getNearestWay(e.getPoint(), OsmPrimitive::isUsable);
    5050        if (nearestWay != highlightedWay) {
    5151            if (highlightedWay != null) {
     
    6565            return;
    6666
    67         Way way = Main.map.mapView.getNearestWay(e.getPoint(), OsmPrimitive.isUsablePredicate);
     67        Way way = Main.map.mapView.getNearestWay(e.getPoint(), OsmPrimitive::isUsable);
    6868        Collection<Relation> selectedRelations = getLayerManager().getEditDataSet().getSelectedRelations();
    6969
Note: See TracChangeset for help on using the changeset viewer.