Normally in Lombok the documentation that shows up in getters and setters are inherited from the field. But I have a class that needs to have an interface. In Java interfaces do not have fields and so I must define the fields in the concrete class. How do I make sure I do not duplicate documentation but still have the documentation associated with the field?
In code
@Data
public class MyClass implements MyInterface{
/**
*My doc
*/
final private List<String> myField;
}
public interface MyInterface{
public List<String> getMyField();
}