FP S3077: Immutable objects

java
sonarjava

(Erik Lorentzson) #1

SonarJava version 5.9.1

The rule description says that putting volatile on an array or a mutable object is a bad idea. But the rule is triggered on immutable objects as well. Should at least common immutable objects be excluded e.g. String?