Hi ![]()
- What language is this for? Java
- Which rule? Public constants and fields initialized at declaration should be “static final” rather than merely “final” java:S1170
- Why do you believe it’s a false-positive/false-negative? Same issue as already fixed for Builder in the pull request: SONARJAVA-3579: Fix FP S1170 for final fields having lombok.Builder.Default by steven-sheehy · Pull Request #3258 · SonarSource/sonar-java · GitHub
- I am using
- SonarQube Cloud?
- How can we reproduce the problem?
@SuperBuilder
public class Test {
@Builder.Default
private final int foo = 1;
}