Skip to content

[java] FinalFieldCouldBeStatic false positive with lombok's @Default #4730

Closed

Description

@adangel

Rule: FinalFieldCouldBeStatic

This issue (#2708) still happens with the used annotation is @Default instead of @Builder.Default (and relevant imports statements).

Originally posted by @blacelle in #2708 (comment)

Activity

  1. added
    a:false-positive
    on Oct 26, 2023
  2. changed the title [-][java] FinalFieldCouldBeStatic false positive with lombok's `@<!-- -->Default`[/-] [+][java] FinalFieldCouldBeStatic false positive with lombok's `@Default`[/+] on Oct 26, 2023
  3. added
    needs:pmd7-revalidation
    and removed
    needs:pmd7-revalidation
    on Mar 17, 2024
  4. added this to the 7.0.0 milestone on Jul 4, 2026
  5. added a commit that references this issue on Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:false-positive

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions