FP S1105 for java 16+ and records

  • SonarQube 9.1.47736
  • Sonar-java (Bundled) - 7.3.0.27589
  • Scanner sonar-maven-plugin - 3.7.0.174
  • Java 16+

Looks like FP for S1105 when we use records. There is no code format/combination for passing this issue for records. (I didn’t find)

package bar.example

public record Foo(String x,
                  String y,
                  String z) {
}

Hello @Osmyslitelny and welcome to the community.

It makes sense to me, ticket created: SONARJAVA-4094.

Thanks for taking the time to report this issue.

Best,
Quentin

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.