[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Created: (XMLBEANS-413) Add @Generated annotation on
From:       "Julien Henry (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2009-08-11 15:24:15
Message-ID: 283050708.1250004255106.JavaMail.jira () brutus
[Download RAW message or body]

Add @Generated annotation on generated code
-------------------------------------------

                 Key: XMLBEANS-413
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-413
             Project: XMLBeans
          Issue Type: Wish
            Reporter: Julien Henry
            Priority: Minor


It would be great to add an option in all code generator tools 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 "xmlbeans" and allow to \
override it in maven plugin/tool parameters.

So all classes generated by Xmlbeans would contain
@Generated(value="xmlbeans")


[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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic