Ignore:
Timestamp:
2020-01-10T00:07:20+01:00 (4 years ago)
Author:
simon04
Message:

Refactoring: OsmUtils.splitMultipleValues

File:
1 edited

Legend:

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

    r15245 r15671  
    44import java.lang.reflect.Method;
    55import java.text.MessageFormat;
    6 import java.util.Arrays;
    76import java.util.EnumSet;
    87import java.util.Map;
     
    173172        /** The reference is treated as a list separated by ';'. Spaces around the ; are ignored.
    174173         *  The value needs to be equal one of the list elements. */
    175         ONE_OF((test, prototype) -> Arrays.asList(test.split("\\s*;\\s*")).contains(prototype)),
     174        ONE_OF((test, prototype) -> OsmUtils.splitMultipleValues(test).anyMatch(prototype::equals)),
    176175        /** The value needs to begin with the reference string. */
    177176        BEGINS_WITH(String::startsWith),
Note: See TracChangeset for help on using the changeset viewer.