I modified my Java source code and refactor one method (a few lines) : in this method refactoring, I deleted the unique usage of a static variable declared on top of my Java class.
When I commited on my branch, all was OK for SonarQube on this branch : no issue and coverage 100%.
The problem occured when I merged this branch to master branch : a major issue occured on this top static variable that is not used anymore.
I have a new use case for this problem.
I modified a private mothod to delete an usage of a specific class (present on import list at top of the file).
I created a PR on this modification and my pipeline was ok (no raised issues).
Next, I merged this branch and a new major issue was raised saying to me that I have an unsued import.