java:S6204 does not recognize Collections.shuffle as a mutator

var myMutableList = blah.stream()
  .collect(Collectors.toList());
Collections.shuffle(myMutableList);

Sonar complains that I should use toList() instead, but shuffle requires that the list be mutable.

SonarSource 7.1.1.54565
SonarQube 9.6.0.59041
Java 17.0.4

Hey there.

Thanks for the feedback!

Please take a look at this thread:

We’re missing some important information (like what product(s) you’re using, and which version if relevant).

SonarLint 7.1.1.54565
SonarQube 9.6.0.59041
Java 17.0.4