Changeset 32936 in osm


Ignore:
Timestamp:
2016-09-07T23:19:08+02:00 (8 years ago)
Author:
donvip
Message:

fix deprecation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java

    r32732 r32936  
    177177        Node lastNode = null;
    178178        // Don't mix up way and nodes computation (fix #6872). Priority given to ways
    179         ways = new SubclassFilteredCollection<>(newSelection, OsmPrimitive.wayPredicate);
     179        ways = new SubclassFilteredCollection<>(newSelection, Way.class::isInstance);
    180180        if (ways.isEmpty()) {
    181             nodes = new SubclassFilteredCollection<>(newSelection, OsmPrimitive.nodePredicate);
     181            nodes = new SubclassFilteredCollection<>(newSelection, Node.class::isInstance);
    182182            for (Node n : nodes) {
    183183                if (n.getCoor() != null) {
Note: See TracChangeset for help on using the changeset viewer.