Changeset 15736 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2020-01-19T23:02:13+01:00 (5 years ago)
Author:
simon04
Message:

Java 8: simplify Stream API usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/GeoJSONReaderTest.java

    r15442 r15736  
    129129                assertEquals(24, primitives.size());
    130130                assertTrue(primitives.stream()
    131                         .filter(it -> areEqualNodes(it, new Node(new LatLon(52.5840213, 13.1724145))))
    132                         .findAny().isPresent());
     131                        .anyMatch(it -> areEqualNodes(it, new Node(new LatLon(52.5840213, 13.1724145)))));
    133132        }
    134133    }
Note: See TracChangeset for help on using the changeset viewer.