You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/09/25 10:25:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16937603#comment-16937603 ] 

ASF subversion and git services commented on GEODE-7226:
--------------------------------------------------------

Commit 64fb67394508c3b0e083debef19394122445c3fe in geode's branch refs/heads/develop from Juan José Ramos
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=64fb673 ]

GEODE-7226: Fix StaticFieldsMustBeImmutable docs (#4078)

- Fixed documentation for the 'StaticFieldsMustBeImmutable' rule so
  it matches the actual rule's behavior.

> 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
>            Assignee: Juan José Ramos Cassella
>            Priority: Major
>              Labels: GeodeCommons
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> 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)