Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9669

Enhance immutability check

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-alpha-1, 3.0.6
    • Component/s: None
    • Labels:
      None

      Description

      If a class is marked with one of the annotations:

      • groovy.transform.Immutable  (already supported)
      • groovy.transform.KnownImmutable  (already supported)
      • net.jcip.annotations.Immutable (supported by Findbugs and IntelliJ IDEA{{)}}
      • javax.annotation.concurrent.Immutable (its RetentionPolicy is CLASS, can not be got via reflection)

      we will believe their promise and treat them as immutable class.

        Attachments

          Activity

            People

            • Assignee:
              daniel_sun Daniel Sun
              Reporter:
              daniel_sun Daniel Sun
            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 0.5h
                0.5h