Changeset 6611 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
- Timestamp:
- 2014-01-03T17:14:36+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r6610 r6611 116 116 if (i instanceof Instruction.AssignmentInstruction) { 117 117 final Instruction.AssignmentInstruction ai = (Instruction.AssignmentInstruction) i; 118 if (ai.isSetInstruction) { 119 containsSetClassExpression = true; 120 continue; 121 } 118 122 final String val = ai.val instanceof Expression 119 123 ? (String) ((Expression) ai.val).evaluate(new Environment()) … … 141 145 } else if ("assertNoMatch".equals(ai.key) && val != null) { 142 146 check.assertions.put(val, false); 143 } else if (ai.val instanceof Boolean && ((Boolean) ai.val)) {144 containsSetClassExpression = true;145 147 } else { 146 148 throw new RuntimeException("Cannot add instruction " + ai.key + ": " + ai.val + "!");
Note:
See TracChangeset
for help on using the changeset viewer.