Skip to content

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

@filiphr

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions