...
@RequiredArgsContructor(onConstructor_ = {@Lazy})
Class A{
private final B b;
@Lazy
private final C c;
}
Class A{
private final B b;
private final C c;
A(B b,@Lazy C c){
this.b = b;
this.c = c;
}
}
Is it the same?
I want to use @Lazy with @RequiredArgsConstructor.