Skip to content

Use Java HashSet and HashMap new factory method with known capacity when on Java 19 #3113

Description

@filiphr

Use case

Instead of calculating the capacity in the generated code we should instead use

This should be done only when the Source level is >= 19.

Generated Code

No response

Possible workarounds

No response

MapStruct Version

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions