Since SonarJava 5.14, and the new rule S5164 (SONARJAVA-3131).
Reproduction code :
class FpS5164
{
private static final ThreadLocal<String> TL = new ThreadLocal<>();
void clean()
{
FpS5164.TL.remove();
}
}
The false positive disappears by removing the class name from the remove call.