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

StaticFieldsMustBeImmutable Rule Fails to detect @Immutable at the class level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • build

    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

              jjramos Juan Ramos
              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