Ignore:
Timestamp:
2016-07-23T00:31:32+02:00 (4 years ago)
Author:
Don-vip
Message:

see #11390, see #12908 - sonar - squid:S1612 - Lambdas should be replaced with method references

File:
1 edited

Legend:

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

    r10582 r10594  
    8080    public static <T> Predicate<T> isInstanceOf(final Class<? extends T> clazz) {
    8181        CheckParameterUtil.ensureParameterNotNull(clazz, "clazz");
    82         return o -> clazz.isInstance(o);
     82        return clazz::isInstance;
    8383    }
    8484
     
    136136     */
    137137    public static <T> Predicate<T> inCollection(final Collection<? extends T> target) {
    138         return object -> target.contains(object);
     138        return target::contains;
    139139    }
    140140
Note: See TracChangeset for help on using the changeset viewer.