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
When constructing objects, we can freely change them whenever via the setters. I would not to not allow for this and go with a more immutable approach.
The jsonschema2pojo plugin allows generating builders associated with pojos, that way pojo classes may remain immutable while the builders provide mutability. However, this would constitute a breaking change in API usage. Given that the API is still pre 1.0.0 is permissible but such change (if green lighted) must be communicated in advance to consumers.
Activity
aalmiray commentedon Feb 28, 2024
The
jsonschema2pojoplugin allows generating builders associated with pojos, that way pojo classes may remain immutable while the builders provide mutability. However, this would constitute a breaking change in API usage. Given that the API is still pre1.0.0is permissible but such change (if green lighted) must be communicated in advance to consumers.cc: @afrittoli @rjalander