Changeset 16384 in josm for trunk/scripts
- Timestamp:
- 2020-04-28T22:24:06+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/TagInfoExtract.java
r16325 r16384 275 275 : Stream.empty()) 276 276 .forEach(item -> { 277 for (String value : item.getValues()) {277 for (String value : values(item)) { 278 278 Set<TagInfoTag.Type> types = TagInfoTag.Type.forPresetTypes(preset.types); 279 279 if (item.isKeyRequired()) { … … 297 297 tags.addAll(optionalTags.values()); 298 298 return tags; 299 } 300 301 private Collection<String> values(KeyedItem item) { 302 final Collection<String> values = item.getValues(); 303 return values.isEmpty() || values.size() > 50 ? Collections.singleton(null) : values; 299 304 } 300 305 … … 568 573 } 569 574 object.add("key", key); 570 object.add("value", value); 575 if (value != null) { 576 object.add("value", value); 577 } 571 578 if ((!objectTypes.isEmpty())) { 572 579 final JsonArrayBuilder types = Json.createArrayBuilder();
Note:
See TracChangeset
for help on using the changeset viewer.