Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive on lombok @With and generated methods #1164

Open
willypm33 opened this issue Feb 12, 2025 · 1 comment
Open

False positive on lombok @With and generated methods #1164

willypm33 opened this issue Feb 12, 2025 · 1 comment

Comments

@willypm33
Copy link

SonarQube server Developer Edition v2025.1 (102418)
sonar-findbugs v4.4.0

For With annotation, we have the rule ID findbugs:RC_REF_COMPARISON on the withxxx generated methods by Lombok.

import lombok.With;

@With
public record Instance(
    Integer order
) {

}
@gtoison
Copy link
Contributor

gtoison commented Feb 14, 2025

Hello, thank you for reporting the issue, the underlying false positive was just fixed in spotbugs/spotbugs#3319
Once SpotBug releases a new version I'll release a new version of the plugin and it should stop reporting this.

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

No branches or pull requests

2 participants