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

Add option to generate Java private setters #212

Merged
merged 1 commit into from
Jun 6, 2019

Conversation

RicoYao
Copy link
Contributor

@RicoYao RicoYao commented May 28, 2019

Plank models should be immutable, but certain project configurations may require that models have
setters that can be accessed package-privately.

Added as a custom command line option. By default, the setters will not be added.

Example:
plank --lang=java --java_generate_package_private_setters_beta my_model.json

@RicoYao RicoYao force-pushed the private_setters branch from 9d990fc to 7671d42 Compare May 28, 2019 22:56
@rahul-malik
Copy link
Collaborator

@RicoYao any changes coming before I should merge?

@RicoYao
Copy link
Contributor Author

RicoYao commented May 31, 2019

@rahul-malik I think I'll put in the experimental flag on this first as discussed. Thanks.

Plank models should be immutable, but certain project configurations may require that models have
setters that can be accessed package-privately.
@RicoYao RicoYao force-pushed the private_setters branch from 7671d42 to c2d2c49 Compare June 6, 2019 06:02
@RicoYao
Copy link
Contributor Author

RicoYao commented Jun 6, 2019

Updated cli flag to --java_generate_package_private_setters_beta and updated the help message.

@RicoYao RicoYao merged commit 32f2fe5 into pinterest:master Jun 6, 2019
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.

2 participants