Skip to content

SONARJAVA-6003 Fix FP on S2055 when a superclass has a compliant Lombok generated co…#5518

Merged
aurelien-coet-sonarsource merged 2 commits intomasterfrom
ac/SONARJAVA-6003
Mar 10, 2026
Merged

SONARJAVA-6003 Fix FP on S2055 when a superclass has a compliant Lombok generated co…#5518
aurelien-coet-sonarsource merged 2 commits intomasterfrom
ac/SONARJAVA-6003

Conversation

@aurelien-coet-sonarsource
Copy link
Contributor

No description provided.

@hashicorp-vault-sonar-prod
Copy link
Contributor

hashicorp-vault-sonar-prod bot commented Mar 9, 2026

SONARJAVA-6003

@aurelien-coet-sonarsource aurelien-coet-sonarsource marked this pull request as ready for review March 9, 2026 10:03
if (value instanceof Symbol symbol) {
return symbol.name();
}
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Honestly, for access attribute value always will be Symbol (because it's always an AccessLevel enum value). So we can simply do smth like "PRIVATE".equals(((Symbol)v.value()).name())

Copy link
Contributor

@asya-vorobeva asya-vorobeva left a comment

Choose a reason for hiding this comment

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

LGTM (see optional comment)

@sonarqube-next
Copy link

@aurelien-coet-sonarsource aurelien-coet-sonarsource merged commit a27c505 into master Mar 10, 2026
14 checks passed
@aurelien-coet-sonarsource aurelien-coet-sonarsource deleted the ac/SONARJAVA-6003 branch March 10, 2026 07:38
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.

2 participants