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).
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:
Sample project
https://github.com/simonstratmann/lombok-interface-hints
Thank you!