Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7226

StaticFieldsMustBeImmutable Rule Fails to detect @Immutable at the class level

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: build
    • Labels:

      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

            Activity

              People

              • Assignee:
                jjramos Juan Ramos
                Reporter:
                jjramos Juan Ramos
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m