Changeset 19181 in josm for trunk/scripts


Ignore:
Timestamp:
2024-08-12T18:00:21+02:00 (3 months ago)
Author:
stoecker
Message:

PMD fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.java

    r19113 r19181  
    2020import java.util.Collections;
    2121import java.util.EnumSet;
    22 import java.util.HashSet;
    2322import java.util.LinkedHashMap;
    2423import java.util.List;
     
    616615
    617616            static Set<TagInfoTag.Type> forPresetTypes(Set<TaggingPresetType> types) {
    618                 return types == null ? new HashSet<>() : types.stream()
     617                return types == null ? new EnumSet<>() : types.stream()
    619618                        .map(Type::forPresetType)
    620619                        .collect(Collectors.toCollection(() -> EnumSet.noneOf(Type.class)));
Note: See TracChangeset for help on using the changeset viewer.