You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "André Ribeiro (JIRA)" <ji...@apache.org> on 2010/11/12 12:47:14 UTC

[jira] Commented: (AXIS2-4462) Add @Generated annotation on generated code

    [ https://issues.apache.org/jira/browse/AXIS2-4462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931369#action_12931369 ] 

André Ribeiro commented on AXIS2-4462:
--------------------------------------

This would be very nice!

Can this be planned for release 1.6?

> Add @Generated annotation on generated code
> -------------------------------------------
>
>                 Key: AXIS2-4462
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4462
>             Project: Axis2
>          Issue Type: Wish
>          Components: codegen
>            Reporter: Julien HENRY
>
> It would be great to add an option in all code generator tools (especially wsdl2java) to output @Generated annotation in generated classes [1].
> This way we would be able to automatically configure our code analysis tools to ignore generated code.
> @Generated annotation is available for JDK 1.6 and optionally for JDK 1.5 using JSR 250 JAR [2].
> Please also note that @Generated support a value parameter that can be set to the name of the generating tool. I suggest to hardcode it to "axis2" and allow to override it in plugin parameters.
> So all classes generated by Axis2 would contains
> @Generated(value="axis2")
> [1] http://java.sun.com/javase/6/docs/api/javax/annotation/Generated.html
> [2] http://repo1.maven.org/maven2/javax/annotation/jsr250-api/1.0/

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org