### Use case Instead of calculating the capacity in the generated code we should instead use * [`HashSet.newHashSet(int)`](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/HashSet.html#newHashSet(int)) * [`HashMap.newHashMap(int)`](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/HashMap.html#newHashMap(int)) This should be done only when the Source level is >= 19. ### Generated Code _No response_ ### Possible workarounds _No response_ ### MapStruct Version _No response_
Use case
Instead of calculating the capacity in the generated code we should instead use
HashSet.newHashSet(int)HashMap.newHashMap(int)This should be done only when the Source level is >= 19.
Generated Code
No response
Possible workarounds
No response
MapStruct Version
No response