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

Annotate generated methods with @Generated

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha-3, 2.5.2
    • Fix Version/s: 3.0.0-alpha-4, 2.5.3
    • Component/s: Compiler
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: