"volatile" keyword solves RSPEC-2168


(Serik0) #1

Version: SonarQube Version 7.1 (build 11001)

Rule: https://rules.sonarsource.com/java/tag/multi-threading/RSPEC-2168

Problem description
This rule description doesn’t contain example of solving by “volatile” keyword.
Sonar considers such solution as correct, so such example should be shown in rule description.

(Nicolas Peru) #2

Thanks for the suggestion : https://github.com/SonarSource/sonar-java/pull/2099/files

I’ll let a Product Manager take care of reviewing it and eventually update our repository with your suggested changes https://jira.sonarsource.com/browse/RSPEC-2168

(Alexandre Gigleux) #3


You are right and I updated https://jira.sonarsource.com/browse/RSPEC-2168 accordingly.
It will be replicated here: https://rules.sonarsource.com/java/tag/multi-threading/RSPEC-2168 the next time we will release SonarJava.