S1105 seems to produce false positives for Java records in the following layout:
private record MyRecord(
UUID id,
String title,
) { // Issue reported here
}
For methods equivalent layout raises no issue:
private Object options(
Object arg1,
Object arg2
) {
Found a similar thread: FP S1105 for java 16+ and records - #3 by Quentin - possibly SONARJAVA-4094 was not implemented fully?
While reviewing violations I noticed another false positive:
Not sure what is specific about this place though, as we have hundreds of similar methods, and the violation is reported just for this one.