In the following example:
@RequiredArgsConstructor
class Child extends Parent {
}
abstract class Parent {
@NonNull int field;
}
The Lombok annotation @RequiredArgsConstructor does not recognize the field "field" as part of the Child class, thus not adding it to the generated constructor. Here's the Delombok output for the Child class:
class Child extends Parent {
public Child() {
}
}
Is there any workaround to fix this without scrapping Lombok altogether?