You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Andrew Gaul (JIRA)" <ji...@apache.org> on 2013/10/24 03:59:42 UTC

[jira] [Commented] (THRIFT-1813) Add @Generated annotation to generated classes

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

Andrew Gaul commented on THRIFT-1813:
-------------------------------------

+1, should we also include the date?

http://docs.oracle.com/javase/6/docs/api/javax/annotation/Generated.html

> Add @Generated annotation to generated classes
> ----------------------------------------------
>
>                 Key: THRIFT-1813
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1813
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler
>            Reporter: Arvind Jayaprakash
>         Attachments: thrift-1813-generated-annotation.patch
>
>
> Why?
> # A lot of static analysis tools understand the javax.annotation.Generated annotation and treat those classes differently.
> # Setting the date field with the date & comments field with the version of the thrift compiler might prove to be valuable for tracing the origins of the generated file.
> The overheads should be minimal as the retention policy of the annotation is purely at a source level



--
This message was sent by Atlassian JIRA
(v6.1#6144)