Lombok @Builder does not work for cases of using inheritance:
for instance
class Foo{
protected int xyz1;
.....
protected String xyz7;
}
class Bar extends Foo{
}
For this use case, Lombok will not be able to generate methods to set the value of the parameter defined in the Foo class.
Workaround for this:
- Manual creation of a panel constructor.
- Place annotation Builder to this constructor.
Is there a better workaround?
source
share