The following code generates the warning. I think it should NOT since by definition the class is ‘final’ and the warning is not issued on final classes as appropraite.
new Thread("name")
{
{
setDaemon(true);
start();
}
}
@Override public void run() { }
Thanks for the report. Can you provide a more complete code sample that reproduces the issue? Preferably a single file that includes the class definition.
Now I found that S2693 comes disabled by default. Now I get the same issue as you.
I’m investigating and I will come back with my findings.
Thanks for your patience.
I agree with you that for this inline class it doesn’t make any sense to trigger this rule.
I have created a ticket for the development team to take care : Jira
The usual process is that community users are the ones in charge of creating the threads and adding all the info needed for us to investigate, answer and solve.
I understand that is the ‘usual’ process but this is not ‘usual’ since you are the one that detected the FP. I am surprised that Sonar only address issues found by the user community and items found internally are not addressed unless also reported by a member of the community. Our company is a paying customer for SonarQuber Server Enterprise and we expect a quality product from a company that address issues found internally and not solely from the customer base. Thanks for your understanding.