- Timestamp:
- 2013-12-22T22:43:24+01:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Tag.java
r6506 r6512 105 105 return new Tag(x[0], x[1]); 106 106 } else { 107 throw new IllegalArgumentException(" Stringdoes not contain '='");107 throw new IllegalArgumentException("'" + s + "' does not contain '='"); 108 108 } 109 109 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r6511 r6512 53 53 protected final List<Tag> alternatives = new ArrayList<Tag>(); 54 54 protected final Map<String, Severity> errors = new HashMap<String, Severity>(); 55 protected final Map<String, Boolean> assertions = new HashMap<String, Boolean>(); 55 56 56 57 TagCheck(List<Selector> selector) { … … 82 83 } else if ("suggestAlternative".equals(ai.key) && val != null) { 83 84 check.alternatives.add(val.contains("=") ? Tag.ofString(val) : new Tag(val)); 85 } else if ("assertMatch".equals(ai.key) && val != null) { 86 check.assertions.put(val, true); 87 } else if ("assertNoMatch".equals(ai.key) && val != null) { 88 check.assertions.put(val, false); 84 89 } else { 85 90 throw new RuntimeException("Cannot add instruction " + ai.key + ": " + ai.val + "!");
Note:
See TracChangeset
for help on using the changeset viewer.