Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant