Skip to content

[java] Don't trigger FinalFieldCouldBeStatic when field is annotated with lombok @Builder.Default - #2747

Merged
oowekyala merged 6 commits into
pmd:masterfrom
ollieabbey:master
Sep 6, 2020
Merged

oowekyala merged 6 commits into
pmd:masterfrom
ollieabbey:master

Conversation

@ollieabbey

Copy link
Copy Markdown
Contributor

Describe the PR

Don't trigger the FinalFieldCouldBeStatic when field is annotated with a lombok @Builder.Default annotation.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by travis)
  • [] Added (in-code) documentation (if needed)

@ghost

ghost commented Aug 27, 2020 •

Copy link
Copy Markdown
1 Message
📖 This changeset introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 2 errors and 0 configuration errors.
Full report
✅ This changeset introduces 1 new violations, 0 new errors and 0 new configuration errors,
removes 1 violations, 2 errors and 0 configuration errors.
Full report

Generated by 🚫 Danger

@ollieabbey ollieabbey changed the title Don't trigger FinalFieldCouldBeStatic when field is annotated with lombok @Builder.Default [java] Don't trigger FinalFieldCouldBeStatic when field is annotated with lombok @Builder.Default Aug 27, 2020
@oowekyala oowekyala self-assigned this Sep 1, 2020

@oowekyala oowekyala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your work!

oowekyala added a commit that referenced this pull request Sep 6, 2020
@oowekyala
oowekyala merged commit bcb04df into pmd:master Sep 6, 2020
@oowekyala oowekyala added this to the 6.28.0 milestone Sep 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[java] False positive FinalFieldCouldBeStatic when using lombok Builder.Default

2 participants