Skip to content

Use EnumSet as Implementation Type if result type is a set of enums #1223

@ugrave

Description

@ugrave

If the mapping result type is a Set of Enums use the EnumSet implementation type instead of a hashmap.

Set<EnumType> map(Set<OtherType) {
 ...
 Set<EnumType> target = EnumSet.noneOf(EnumType.class);
 ...
 return target;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions