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

Request: Mark fields for which getters and/or setters are overrides #1178

Open
simonstratmann opened this issue Jun 7, 2023 · 0 comments
Open

Comments

@simonstratmann
Copy link

Short description

We have a lot of POJO classes which implement interfaces that define getters for certain attributes. We define these attributes as fields and use @Data on the classes. If we add other attributes for which no getters are defined in the interface it's impossible to determine (on a glance) which attributes are required by the interface and which are not. Also in the interfaces the getters may be annotated with validations like @NotBlank which are invisible in the implementing classes.

Expected behavior

I think there are several ways this could be improved:

  • A gutter icon could indicate that accessors for a field are defined in superclasses and allow to go there.
  • Editor hints, like for parameters of methods which indicate the type or often the contract like `@NotNull).
  • Up to you :-)

Sample project

https://github.com/simonstratmann/lombok-interface-hints

Thank you!

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