Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider initializers for staged required only builders #197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frederikb
Copy link

Background

Fixes #187

Changes

Any components with initializers (annotated with @RecordBuilder.Initializer(...)) are not staged when using "staged required only" builders and are only added to the final stage.

Important

BREAKING CHANGE. User code may not compile anymore due to the changed order of initialization of properties in these builders.

Discussion Points

  • This is a breaking change to "staged required only" builders. Is this acceptable or would this need to be a behavior toggled through a new option?
  • This is my first contribution to this project and the first time taking a look at the codebase. Is this minimal change correctly done or did I miss some edge cases?

Any components with initializers (annotated with `@RecordBuilder.Initializer(...)`) are not staged when using "staged required only" builders and are added to the final stage.

BREAKING CHANGE

Fixes Randgalt#187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default values and staged builders
1 participant