# Unused Import false positives

**URL:** <https://community.sonarsource.com/t/unused-import-false-positives/114746>\
**Category:** SonarQube Server / Community Build\
**Created:** [May 5, 2024, 6:09pm UTC](https://community.sonarsource.com/t/unused-import-false-positives/114746 "2024-05-05T18:09:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbhinavVerma](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/abhinavverma/32/61659_2.png) [@AbhinavVerma](https://community.sonarsource.com/u/AbhinavVerma)\
**Post date:** [May 5, 2024, 6:09pm UTC](https://community.sonarsource.com/t/unused-import-false-positives/114746/1 "2024-05-05T18:09:31Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![anon67236913](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@anon67236913](https://community.sonarsource.com/u/anon67236913)\
**Post date:** [May 6, 2024, 4:59am UTC](https://community.sonarsource.com/t/unused-import-false-positives/114746/2 "2024-05-06T04:59:20Z")

</div>

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:

- [Upgrade Guide](https://docs.sonarqube.org/latest/setup/upgrading/)
- [LTS-to-LTS Upgrade Notes for 7.9 to 8.9](https://docs.sonarqube.org/8.9/setup/lts-to-lts-upgrade-notes/)
- [LTS to LTS release upgrade notes for 8.9 to 9.9](https://docs.sonarqube.org/9.9/setup-and-upgrade/lts-to-lts-release-upgrade-notes/)

If you have questions about upgrading, feel free to open a new thread for that [here](https://community.sonarsource.com/c/sq/9-9-lts-upgrade/47).

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

Gilbert

---

<div class="post-metadata">

**Author:** ![AbhinavVerma](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/abhinavverma/32/61659_2.png) [@AbhinavVerma](https://community.sonarsource.com/u/AbhinavVerma)\
**Post date:** [July 11, 2024, 3:50pm UTC](https://community.sonarsource.com/t/unused-import-false-positives/114746/3 "2024-07-11T15:50:59Z")

</div>

Thanks for reply. I will follow the above steps.

---

<div class="post-metadata">

**Author:** ![anon67236913](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@anon67236913](https://community.sonarsource.com/u/anon67236913)\
**Post date:** [July 11, 2024, 3:55pm UTC](https://community.sonarsource.com/t/unused-import-false-positives/114746/4 "2024-07-11T15:55:01Z")

</div>

In the meantime Sonarqube 10.6.0 is the latest version.

---

<div class="post-metadata">

**Author:** ![AbhinavVerma](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/abhinavverma/32/61659_2.png) [@AbhinavVerma](https://community.sonarsource.com/u/AbhinavVerma)\
**Post date:** [November 2, 2024, 6:55am UTC](https://community.sonarsource.com/t/unused-import-false-positives/114746/5 "2024-11-02T06:55:10Z")

</div>

Hi, We have upgraded to 8.9.10. But still receiving some false positive imports. What can be the issue now ?
