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

groovydoc: $INIT static method shown on Groovy enums

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1, 3.0.5
    • GroovyDoc
    • None

    Description

      Groovydoc shows $INIT static method that can be used to create instances of the enum:

      enum GE{}
      final ge = GE.$INIT(['', 0] as Object[])
      assert ge.class == GE
      

      That should probably be hidden from groovydocs.

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              vmj Mikko Värri
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: