Ignore:
Timestamp:
2021-03-23T00:47:34+01:00 (3 years ago)
Author:
simon04
Message:

see #19078 - Common interface TagCondition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerRule.java

    r17640 r17642  
    1717import org.openstreetmap.josm.gui.mappaint.Keyword;
    1818import org.openstreetmap.josm.gui.mappaint.mapcss.Condition;
     19import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.TagCondition;
    1920import org.openstreetmap.josm.gui.mappaint.mapcss.Expression;
    2021import org.openstreetmap.josm.gui.mappaint.mapcss.Instruction;
     
    237238        try {
    238239            final Condition c = matchingSelector.getConditions().get(index);
    239             final Tag tag = c instanceof Condition.ToTagConvertable
    240                     ? ((Condition.ToTagConvertable) c).asTag(p)
     240            final Tag tag = c instanceof TagCondition
     241                    ? ((TagCondition) c).asTag(p)
    241242                    : null;
    242243            if (tag == null) {
Note: See TracChangeset for help on using the changeset viewer.