Changeset 17978 in josm for trunk/scripts


Ignore:
Timestamp:
2021-07-10T18:44:42+02:00 (3 years ago)
Author:
Don-vip
Message:

see #21079 - TagInfo: bugfix + improved logs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.java

    r17977 r17978  
    1919import java.util.Collections;
    2020import java.util.EnumSet;
     21import java.util.HashSet;
    2122import java.util.LinkedHashMap;
    2223import java.util.List;
     
    326327                    Collection<TaggingPreset> presets = TaggingPresetReader.readAll(source.url, false);
    327328                    final List<TagInfoTag> t = convertPresets(presets, source.title + " ", false);
    328                     Logging.info("Converting {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());
    329330                    tags.addAll(t);
    330331                } catch (Exception ex) {
     
    607608
    608609            static Set<TagInfoTag.Type> forPresetTypes(Set<TaggingPresetType> types) {
    609                 return types == null ? Collections.emptySet() : types.stream()
     610                return types == null ? new HashSet<>() : types.stream()
    610611                        .map(Type::forPresetType)
    611612                        .collect(Collectors.toCollection(() -> EnumSet.noneOf(Type.class)));
Note: See TracChangeset for help on using the changeset viewer.