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

Enhance immutability check

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1, 3.0.6
    • None
    • 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

            daniel_sun Daniel Sun
            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