Ignore:
Timestamp:
2024-08-12T20:25:56+02:00 (6 weeks ago)
Author:
taylor.smock
Message:

Fix EnumSet instantiation error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.java

    r19181 r19184  
    615615
    616616            static Set<TagInfoTag.Type> forPresetTypes(Set<TaggingPresetType> types) {
    617                 return types == null ? new EnumSet<>() : types.stream()
     617                final EnumSet<TagInfoTag.Type> enums = EnumSet.noneOf(TagInfoTag.Type.class);
     618                return types == null ? enums : types.stream()
    618619                        .map(Type::forPresetType)
    619                         .collect(Collectors.toCollection(() -> EnumSet.noneOf(Type.class)));
     620                        .collect(Collectors.toCollection(() -> enums));
    620621            }
    621622        }
Note: See TracChangeset for help on using the changeset viewer.