Ignore:
Timestamp:
2016-08-03T15:39:00+02:00 (4 years ago)
Author:
simon04
Message:

see #11390, see #12890 - Lambda can be replaced with method reference

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java

    r10716 r10717  
    250250
    251251        private static boolean isTagged(final Collection<Node> existingNodes) {
    252             return existingNodes.stream().anyMatch(selectedNode -> selectedNode.hasKeys());
     252            return existingNodes.stream().anyMatch(Node::hasKeys);
    253253        }
    254254
  • trunk/src/org/openstreetmap/josm/actions/relation/DownloadSelectedIncompleteMembersAction.java

    r10657 r10717  
    5959    public void setPrimitives(Collection<? extends OsmPrimitive> primitives) {
    6060        // selected relations with incomplete members
    61         this.relations = SubclassFilteredCollection.filter(getRelations(primitives), r -> r.hasIncompleteMembers());
     61        this.relations = SubclassFilteredCollection.filter(getRelations(primitives), Relation::hasIncompleteMembers);
    6262        this.incompleteMembers = buildSetOfIncompleteMembers(relations);
    6363        updateEnabledState();
Note: See TracChangeset for help on using the changeset viewer.