Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B92DB77F3 for ; Mon, 10 Oct 2011 06:43:04 +0000 (UTC) Received: (qmail 95468 invoked by uid 500); 10 Oct 2011 06:42:58 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 93788 invoked by uid 500); 10 Oct 2011 06:42:56 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 93338 invoked by uid 99); 10 Oct 2011 06:42:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 06:42:51 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 06:42:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 39C52300FC0 for ; Mon, 10 Oct 2011 06:42:30 +0000 (UTC) Date: Mon, 10 Oct 2011 06:42:30 +0000 (UTC) From: "Shameera Rathnayaka (Commented) (JIRA)" To: java-dev@axis.apache.org Message-ID: <1465160008.13854.1318228950238.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AXIS2-4462) Add @Generated annotation on generated code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-4462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123917#comment-13123917 ] Shameera Rathnayaka commented on AXIS2-4462: -------------------------------------------- i have attached patch for this issue please review and commit it to trunk. thanks shameera > 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 > Assignee: Amila Chinthaka Suriarachchi > Attachments: generatedClassAnnotationOption.patch > > > 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. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org