Unused Import false positives

We are using SonarQube * Community Edition * Version 8.9.5 (build 50698)
So we are having an issue in our project that some imports which are actually getting used are showing unused on sonarqube. How to fix this ?

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

xxx → 8.9.10 → 9.9.4 LTS → 10.5.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

Gilbert

1 Like