You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Juan José Ramos Cassella (Jira)" <ji...@apache.org> on 2019/09/20 17:20:00 UTC

[jira] [Updated] (GEODE-7226) StaticFieldsMustBeImmutable Rule Fails to detect @Immutable at the class level

     [ https://issues.apache.org/jira/browse/GEODE-7226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juan José Ramos Cassella updated GEODE-7226:
--------------------------------------------
    Labels: GeodeCommons  (was: )

> StaticFieldsMustBeImmutable Rule Fails to detect @Immutable at the class level
> ------------------------------------------------------------------------------
>
>                 Key: GEODE-7226
>                 URL: https://issues.apache.org/jira/browse/GEODE-7226
>             Project: Geode
>          Issue Type: Bug
>          Components: build
>            Reporter: Juan José Ramos Cassella
>            Priority: Major
>              Labels: GeodeCommons
>
> 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:
> {quote}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.
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)