Ignore:
Timestamp:
2016-08-06T01:08:18+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:CallToDeprecatedMethod - remove calls to deprecated methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r10721 r10742  
    143143    public static <T> boolean exists(Iterable<T> collection, Class<? extends T> clazz) {
    144144        CheckParameterUtil.ensureParameterNotNull(clazz, "clazz");
    145         return exists(collection, clazz::isInstance);
     145        return StreamUtils.toStream(collection).anyMatch(clazz::isInstance);
    146146    }
    147147
Note: See TracChangeset for help on using the changeset viewer.