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

Not public constructors for groovy.transform.Immutable anotated class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0-rc-1
    • None
    • None

    Description

      groovy.transform.Immutable annotation generates only public constructors for annotated class.

      I want to be able to create class with constructors with another modifiers e. g. private constructors and define static method create/build/from which will be the only way to create my immutable class.

      The pull request will be provided.

      Attachments

        Activity

          People

            paulk Paul King
            alien11689 Dominik Przybysz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: