Skip to content

Adds builder method when using innerBuilder#1401

Merged
joelittlejohn merged 2 commits intojoelittlejohn:masterfrom
josejulio:issue-1396
Aug 6, 2022
Merged

Adds builder method when using innerBuilder#1401
joelittlejohn merged 2 commits intojoelittlejohn:masterfrom
josejulio:issue-1396

Conversation

@josejulio
Copy link
Contributor

@josejulio josejulio commented May 5, 2022

This PR updates the code to add a public static method called builder to all the classes that are created with the generateBuilders and useInnerClassBuilders.

This is a sample of how the builder method looks like:

public static Child.ChildBuilderBase builder() {
    return new Child.ChildBuilder();
}

Fixes #1396

@josejulio
Copy link
Contributor Author

@joelittlejohn I guess I need some approval for the test suite to run.

Let me know if there is anything else to do here, thanks!

@joelittlejohn
Copy link
Owner

Just closing/opening to trigger checks.

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.

Add builder method to create a new instance of the builder

2 participants