Skip to content

take Lombok constructor annotations into account for @Autowired validation #1635

Closed

Description

@martinlippert

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.

Activity

  1. added
    for: eclipse
    for: vscode
    and removed on Sep 5, 2025
  2. added this to the 5.0.0.RELEASE milestone on Sep 5, 2025
  3. self-assigned this
    on Sep 5, 2025
  4. added a commit that references this issue on Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: validationtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions