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

Annotate generated methods with @Generated

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-3, 2.5.2
    • 3.0.0-alpha-4, 2.5.3
    • Compiler
    • None

    Description

      The `@Generated` annotation was added a couple of releases ago to indicate that a method/class was generated by the compiler (most likely via AST transformations). This annotation is already applied to methods defined by `GroovyObject` however it has yet to be applied to many of the generated methods added by core AST transformations.

       

      See the following links for more context

      https://github.com/apache/groovy/pull/617#issuecomment-336249772

      https://github.com/jacoco/jacoco/pull/733

       

      Attachments

        Activity

          People

            aalmiray Andres Almiray
            aalmiray Andres Almiray
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: