Dropping @Override from generated source [message #524813] |
Fri, 02 April 2010 12:17  |
Eclipse User |
|
|
|
All,
While generating EMF source, I noticed that @Override annotations were being specified for implemented interfaces (a Java 6 feature), however this plugin is targeting Java SE 1.5.
Looking through the JET templates, I noticed the following:
357 <%if (genModel.useClassOverrideAnnotation()) {%>
358 @Override
359 <%}%>
It appears that my only option is to disable emitting @Overrides annotations period (those used on interfaces use the same snippet above as those that don't).
What is the proper attribute to set in the .genmodel to disable this annotation?
TIA!
|
|
|
Re: Dropping @Override from generated source [message #524885 is a reply to message #524813] |
Sat, 03 April 2010 05:08  |
Eclipse User |
|
|
|
Steven,
You'll want to set the GenModel's Compliance Level property to 5.0.
Steven Stallion wrote:
> All,
>
> While generating EMF source, I noticed that @Override annotations were
> being specified for implemented interfaces (a Java 6 feature), however
> this plugin is targeting Java SE 1.5.
> Looking through the JET templates, I noticed the following:
> 357 <%if (genModel.useClassOverrideAnnotation()) {%>
> 358 @Override
> 359 <%}%>
>
> It appears that my only option is to disable emitting @Overrides
> annotations period (those used on interfaces use the same snippet
> above as those that don't).
>
> What is the proper attribute to set in the .genmodel to disable this
> annotation?
>
> TIA!
|
|
|
Powered by
FUDForum. Page generated in 0.27371 seconds