java:S1105 in record class containing final variable or nested record definition

java:S1105 sometimes falsely requests the curly brace to be moved to the previous line.
SonarLint: 10.8.1.79205
SonarQube: v10.6 (92116)

public record TestRecordSyntax(Integer value) {

  public TestRecordSyntax(String v) { // <- Complains about this curly brace
    this(Integer.parseInt(v));
  }

  public static final String FOR_SOME_REASON_THIS_NEEDS_TO_EXIST_HERE_TO_REPRODUCE_ISSUE = "IDK";
}

For some reason the issue only seems to occur if there is a static final variable located after the constructor.

Also happens with nested records

public record TestRecordSyntaxV2(String value) {

  private void doThing() { // <- Complains about this curly brace
  }

  public record ThisRecordCausesTheIssueAsWell(String value) {
  }
}

Hi,

The issue has been reproduced in-house. A new ticket has been created: [SONARJAVA-5116] - Jira

Best regards,
Paul.