You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/09/15 15:22:00 UTC

[jira] [Commented] (GROOVY-8765) Annotate generated methods with @Generated

    [ https://issues.apache.org/jira/browse/GROOVY-8765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16616359#comment-16616359 ] 

Paul King commented on GROOVY-8765:
-----------------------------------

Merged your commit from:
https://github.com/aalmiray/groovy/tree/GROOVY-8765-apply-generated-annotation
Slightly tweaked it to have some additional helper methods to get rid of the dup as you suggested.
Also added coverage of generated property accessors and generated method/constructors due to default parameters.

> Annotate generated methods with @Generated
> ------------------------------------------
>
>                 Key: GROOVY-8765
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8765
>             Project: Groovy
>          Issue Type: New Feature
>          Components: Compiler
>    Affects Versions: 3.0.0-alpha-3, 2.5.2
>            Reporter: Andres Almiray
>            Assignee: Andres Almiray
>            Priority: Major
>
> 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]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)