You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.
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!
The text was updated successfully, but these errors were encountered: