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] [Created] (GEODE-7226) StaticFieldsMustBeImmutable Rule Fails to detect @Immutable at the class level

Juan José Ramos Cassella created GEODE-7226:
-----------------------------------------------

             Summary: 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


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)