Ignore:
Timestamp:
2014-01-03T17:14:36+01:00 (10 years ago)
Author:
simon04
Message:

see #9516 - Replace BuildingInBuilding by a corresponding MapCSS test

File:
1 edited

Legend:

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

    r6610 r6611  
    116116                if (i instanceof Instruction.AssignmentInstruction) {
    117117                    final Instruction.AssignmentInstruction ai = (Instruction.AssignmentInstruction) i;
     118                    if (ai.isSetInstruction) {
     119                        containsSetClassExpression = true;
     120                        continue;
     121                    }
    118122                    final String val = ai.val instanceof Expression
    119123                            ? (String) ((Expression) ai.val).evaluate(new Environment())
     
    141145                    } else if ("assertNoMatch".equals(ai.key) && val != null) {
    142146                        check.assertions.put(val, false);
    143                     } else if (ai.val instanceof Boolean && ((Boolean) ai.val)) {
    144                         containsSetClassExpression = true;
    145147                    } else {
    146148                        throw new RuntimeException("Cannot add instruction " + ai.key + ": " + ai.val + "!");
Note: See TracChangeset for help on using the changeset viewer.