Hi,
we are using SonarQube 9.9.1 and observe a strange behaviour regarding a specific issue.
The message is ‘Replace this “Map.get()” and condition with a call to “Map.computeIfPresent()”’ in a Java file, the affected line is “WeakReference reference = loaders.get(key);”
The file including this line was created in April 2023 and not changed since then.
It by now exists on the main branch (master) and on a release branch which was created afterwards from the main branch. On both branches it keeps on switching its status, but in a different way.
On the release branch this issue keeps on switching between FIXED/CLOSE and OPEN: (output shortened)
June 22, 2023 at 3:30 PM
Created by XXX
July 12, 2023 at 12:50 PM
Resolution changed to FIXED
Line number removed from issue (was 49)
Status changed to CLOSED (was OPEN)
July 12, 2023 at 1:53 PM
Resolution removed (was FIXED)
Status changed to OPEN (was CLOSED)
July 14, 2023 at 11:24 AM
Resolution changed to FIXED
Line number removed from issue (was 49)
Status changed to CLOSED (was OPEN)
July 14, 2023 at 4:07 PM
Resolution removed (was FIXED)
Status changed to OPEN (was CLOSED)
On the main branch, the issue keeps on switching between WONTFIX/RESOLVED and FIXED/CLOSED: (output shortened)
April 21, 2023 at 6:27 PM
Created by XXX
April 25, 2023 at 6:10 PM
The issue has been copied from branch '#7720' to branch 'master'
August 15, 2023 at 5:31 PM
Resolution changed to FIXED (was WONTFIX)
Line number removed from issue (was 49)
Status changed to CLOSED (was RESOLVED)
August 16, 2023 at 1:22 PM
Resolution changed to WONTFIX (was FIXED)
Status changed to RESOLVED (was CLOSED)
August 16, 2023 at 2:33 PM
Resolution changed to FIXED (was WONTFIX)
Line number removed from issue (was 49)
Status changed to CLOSED (was RESOLVED)
August 17, 2023 at 11:18 AM
Resolution changed to WONTFIX (was FIXED)
Status changed to RESOLVED (was CLOSED)
The behaviour on the release line branch is very annoying, as the issue keeps on popping up, without any changes. I have no idea how to explain this behaviour to the developers.
Does anybody please have an idea what is going on here and how to keep the issues as WONTFIX? (We don’t want to touch this code.)
Thanks!
Regards,
Carsten