Changeset 17978 in josm for trunk/scripts
- Timestamp:
- 2021-07-10T18:44:42+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/TagInfoExtract.java
r17977 r17978 19 19 import java.util.Collections; 20 20 import java.util.EnumSet; 21 import java.util.HashSet; 21 22 import java.util.LinkedHashMap; 22 23 import java.util.List; … … 326 327 Collection<TaggingPreset> presets = TaggingPresetReader.readAll(source.url, false); 327 328 final List<TagInfoTag> t = convertPresets(presets, source.title + " ", false); 328 Logging.info("Convert ing {0} presets of {1}", t.size(), source.title);329 Logging.info("Converted {0} presets of {1} to {2} tags", presets.size(), source.title, t.size()); 329 330 tags.addAll(t); 330 331 } catch (Exception ex) { … … 607 608 608 609 static Set<TagInfoTag.Type> forPresetTypes(Set<TaggingPresetType> types) { 609 return types == null ? Collections.emptySet() : types.stream()610 return types == null ? new HashSet<>() : types.stream() 610 611 .map(Type::forPresetType) 611 612 .collect(Collectors.toCollection(() -> EnumSet.noneOf(Type.class)));
Note:
See TracChangeset
for help on using the changeset viewer.