Constructors can be generated in eclipse quite easily. But, can the constructors somehow be generated which also perform null check? Example:
public class A {
private B b;
private C c;
//I need to auto-generate this type of constructor for many of my classes in Eclipse
public A(B b, C c) {
this.b = Objects.requireNonNull(b);
this.c = Objects.requireNonNull(c);
}
}
Is this possible?