You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The steps to reproduce should be the same as listed above. None of the other config values I had defined seemed to affect the behavior.
Expected Result
When generateImmutableModels is set to true, the all args constructor should be generated as package-private regardless of the setting for generateNoArgsConstructorOnly.
Actual Result
generateNoArgsConstructorOnly = true completely eliminates the all args constructor, resulting in non-compiling code. generateNoArgsConstructorOnly = true leaves a public constructor, so the object is not immutable.
Issue Description
When configuring the Gradle plugin, I want the code generator to produce immutable objects, so I set the config as:
This still produced the public constructor, so I tried adding:
This resulted in non-compiling code.
Steps to Reproduce
The steps to reproduce should be the same as listed above. None of the other config values I had defined seemed to affect the behavior.
Expected Result
When
generateImmutableModels
is set to true, the all args constructor should be generated as package-private regardless of the setting forgenerateNoArgsConstructorOnly
.Actual Result
generateNoArgsConstructorOnly = true
completely eliminates the all args constructor, resulting in non-compiling code.generateNoArgsConstructorOnly = true
leaves a public constructor, so the object is not immutable.Your Environment and Setup
The text was updated successfully, but these errors were encountered: