I\'m using the @AllArgsConstructor annotation in my class and want to be sure that arguments will be not null. Is there a way to modify this annotation to make
@AllArgsConstructor
Yes, you have to use @ NonNull on such fields, it will result in a null check in the generated constructor.
@ NonNull