We have a daily analysis running on the master branch (similar to the one running after a PR merged, the whole repo scan).
But, there were new bugs (with the same bug type) suddenly popped up for our old code yesterday. The bug is
This method's return value is marked "@NotNull" but null is returned, which is belong to the
"@NonNull" values should not be set to null rule (java:S2637).
The log seems normal, same with the previous scans.
Any idea why the bugs suddenly appeared?
Your issue might be related to the release of [SONARJAVA-4342] - Jira.
To be able to give a better answer, would it be possible for you to send a reproducer?
Yes, confirmed the issue is related to the release of that rule.
Is there a place where I can find this kind of rule update?
You could go to SONARJAVA’s release notes: Releases · SonarSource/sonar-java · GitHub.
Can you confirm that I can close this issue?
Sure, you can close this issue.
Thank you for the assistance.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.