Private variable referred in Kafka publish through setter is marked as unused variable - java:S1068

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension): v9.9.5 (build 90363)
  • how is SonarQube deployed: zip, Docker, Helm: Helm
  • what are you trying to achieve: Sonarqube flagged “New Code Smells”
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

I’ve moved your post to our section on reporting false-positives.

Can you update your post with a complete code sample?