Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
The StaticFieldsMustBeImmutable rule fails to detect the @Immutable annotation at the class level, forcing you to annotate every single effectively immutable static field individually.
According to the rule documentation, however, annotating the class directly is supported:
If the value of your static field is actually immutable, you can annotate that class or the field itself with @Immutable, and it will be ignored by this rule.
Attachments
Issue Links
- links to