Changeset 14704 in josm for trunk/src/org
- Timestamp:
- 2019-01-19T17:52:54+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r14696 r14704 396 396 */ 397 397 public static boolean isKeyInPresets(String key) { 398 return getPresetValues(key) != null;398 return TaggingPresets.getPresetValues(key) != null; 399 399 } 400 400 … … 408 408 public static boolean isTagInPresets(String key, String value) { 409 409 final Set<String> values = getPresetValues(key); 410 return values != null && (values.isEmpty() || values.contains(value));410 return values != null && values.contains(value); 411 411 } 412 412 … … 451 451 public static boolean isTagIgnored(String key, String value) { 452 452 if (isKeyIgnored(key)) 453 return true; 454 final Set<String> values = getPresetValues(key); 455 if (values != null && values.isEmpty()) 453 456 return true; 454 457 if (!isTagInPresets(key, value)) {
Note:
See TracChangeset
for help on using the changeset viewer.