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

Fields don't have a no argument constructor. #14

Closed
DavidTPate opened this issue Mar 12, 2013 · 0 comments
Closed

Fields don't have a no argument constructor. #14

DavidTPate opened this issue Mar 12, 2013 · 0 comments

Comments

@DavidTPate
Copy link

With lombok you are generating simple getters and setters which return this instead of void, but since there isn't a no args constructor for fields we aren't able to make much use of them to improve readability of code.

Currently we have to do something like this to create a field:
new TextField("NAME","name","Jim Bob")

This could easily be improved to be more readable by simply adding a blank constructor. The code could be transformed into a more readable form like below, which would also allow us to take advantage of the way that you have setters created through lombok.
new TextField().label("NAME") .key("name") .value("Jim Bob")

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

1 participant