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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java

    r10715 r10717  
    166166        ONE_OF((test, prototype) -> Arrays.asList(test.split("\\s*;\\s*")).contains(prototype)),
    167167        /** The value needs to begin with the reference string. */
    168         BEGINS_WITH((test, prototype) -> test.startsWith(prototype)),
     168        BEGINS_WITH(String::startsWith),
    169169        /** The value needs to end with the reference string. */
    170         ENDS_WITH((test, prototype) -> test.endsWith(prototype)),
     170        ENDS_WITH(String::endsWith),
    171171        /** The value needs to contain the reference string. */
    172         CONTAINS((test, prototype) -> test.contains(prototype));
     172        CONTAINS(String::contains);
    173173
    174174        static final Set<Op> NEGATED_OPS = EnumSet.of(NEQ, NREGEX);
Note: See TracChangeset for help on using the changeset viewer.