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

Expand the definition of "getter" and "setter" #618

Closed
andrus opened this issue Mar 12, 2023 · 0 comments
Closed

Expand the definition of "getter" and "setter" #618

andrus opened this issue Mar 12, 2023 · 0 comments
Milestone

Comments

@andrus
Copy link
Contributor

andrus commented Mar 12, 2023

At present the industry definitions of a "getter" and a "setter" are broader than they were in the olden Java Bean days:

// classic "java bean"
public T getXyz() {}

// classic "java bean" boolean
public boolean isXyz() {}

// an implicit "getter" in a Java Record
public T xyz() {}
// classic "java bean" setter
public void setXyz(T t) {}

// fluent setter
public This setXyz(T t) {}

Our property compiler should respect all flavors, not just the classic ones.

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