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

Support Builder-style setters #229

Open
pheerai opened this issue Nov 16, 2018 · 1 comment
Open

Support Builder-style setters #229

pheerai opened this issue Nov 16, 2018 · 1 comment

Comments

@pheerai
Copy link

pheerai commented Nov 16, 2018

Even though not strictly POJO compatible, oftentimes (generated) setters behave Builder-like, i.e. returning the instance of the class itself. This kind of setters is currently not supported by this tool, as it's checking the setter for a void return type.
A "naïve" approach to this should be fairly easy to implement (widen the scope of return value to the class type itself), but I'm not sure whether (and how) this behavior should be configurable.
If there's feedback in any direction, I'd be willing to perform the actual implementation.

@GhilesA
Copy link

GhilesA commented Mar 8, 2019

I think it's an interesting addition to match with more flexible setter.
The builder-style setters are common in a lot of project

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

No branches or pull requests

2 participants