Changeset 19184 in josm for trunk/scripts
- Timestamp:
- 2024-08-12T20:25:56+02:00 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/TagInfoExtract.java
r19181 r19184 615 615 616 616 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() 618 619 .map(Type::forPresetType) 619 .collect(Collectors.toCollection(() -> EnumSet.noneOf(Type.class)));620 .collect(Collectors.toCollection(() -> enums)); 620 621 } 621 622 }
Note:
See TracChangeset
for help on using the changeset viewer.