The validation that checks for unnecessary @Autowired annotations on constructors should take the following Lombok annotations into account:
@NoArgsConstructor
@RequiredArgsConstructor
@AllArgsConstructor
In case any of these annotations is on the class, the validation SHOULD NOT complain about the @Autowired annotation on a single constructor on the class, since Lombok will add further constructors to that class at build-time - which causes the @Autowired annotation to be necessary.
The validation that checks for unnecessary
@Autowiredannotations on constructors should take the following Lombok annotations into account:@NoArgsConstructor@RequiredArgsConstructor@AllArgsConstructorIn case any of these annotations is on the class, the validation SHOULD NOT complain about the
@Autowiredannotation on a single constructor on the class, since Lombok will add further constructors to that class at build-time - which causes the@Autowiredannotation to be necessary.