Changeset 13918 in osm
- Timestamp:
- 2009-02-27T12:05:10+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java
r13497 r13918 369 369 { 370 370 List<String> values = presetsValueData.get(key); 371 if( values != null && !values.contains(prop.getValue()) && !withErrors.contains(p, "UPV"))372 { 373 String i = marktr("Key ''{0}'' unknown.");374 errors.add( new TestError(this, Severity.OTHER, tr(" Unknown property values"),371 if( values == null) 372 { 373 String i = marktr("Key ''{0}'' not in presets."); 374 errors.add( new TestError(this, Severity.OTHER, tr("Presets do not contain property key"), 375 375 tr(i, key), MessageFormat.format(i, key), INVALID_VALUE, p) ); 376 withErrors.add(p, "UPK"); 377 } 378 else if(!values.contains(prop.getValue())) 379 { 380 String i = marktr("Value ''{0}'' for key ''{1}'' not in presets."); 381 errors.add( new TestError(this, Severity.OTHER, tr("Presets do not contain property value"), 382 tr(i, prop.getValue(), key), MessageFormat.format(i, prop.getValue(), key), INVALID_VALUE, p) ); 376 383 withErrors.add(p, "UPV"); 377 384 }
Note:
See TracChangeset
for help on using the changeset viewer.