Ignore:
Timestamp:
2017-07-31T23:34:29+02:00 (3 years ago)
Author:
Don-vip
Message:

sonar - squid:S4034 - "Stream.anyMatch()" should be preferred

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/TagCollection.java

    r11339 r12549  
    377377     */
    378378    public boolean hasValuesFor(String key) {
    379         return generateStreamForKey(key).filter(t -> !t.getValue().isEmpty()).findAny().isPresent();
     379        return generateStreamForKey(key).anyMatch(t -> !t.getValue().isEmpty());
    380380    }
    381381
Note: See TracChangeset for help on using the changeset viewer.