You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Thomas Vandahl <tv...@apache.org> on 2018/09/09 15:41:48 UTC
@SuppressWarnings({"unused", "unchecked"}) in generated Peer classes
- Where from?
Eclipse complains about unnecessary @SuppressWarnings({"unused",
"unchecked"}) in generated Java files. I was not able to find the place
where this annotation is inserted. I need a hint.
Bye, Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org
Re: @SuppressWarnings({"unused", "unchecked"}) in generated Peer classes -
Where from?
Posted by Georg Kallidis <ge...@cedis.fu-berlin.de>.
Hi Thomas,
probably you are building with m2e maven2Builder in eclipse? I do not get
this (e.g. in peers in torque-templates/target/generated-sources) using
m2e (maven formatter, Eclipse Luna). Check another Eclipse version? Save
Actions and Templates in settings apply only to editing in Eclipse IMO.
-Georg
Von: Thomas Vandahl <tv...@apache.org>
An: Apache Torque Developers List <to...@db.apache.org>
Datum: 09.09.2018 17:41
Betreff: @SuppressWarnings({"unused", "unchecked"}) in generated
Peer classes - Where from?
Eclipse complains about unnecessary @SuppressWarnings({"unused",
"unchecked"}) in generated Java files. I was not able to find the place
where this annotation is inserted. I need a hint.
Bye, Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org
Re: @SuppressWarnings({"unused", "unchecked"}) in generated Peer
classes - Where from?
Posted by Thomas Fox <th...@seitenbau.com>.
There is /torque-test/src/main/torque-gen/templates/peer/base/classAnnotations.vm in the test project.
The intention was to verify that generation can be changed within a project. Is that what you mean?
Perhaps the best idea is to replace the annotations with some comment?
Thomas
----- Ursprüngliche Mail -----
Von: "tv" <tv...@apache.org>
An: "Apache Torque Developers List" <to...@db.apache.org>
Gesendet: Sonntag, 9. September 2018 17:41:48
Betreff: @SuppressWarnings({"unused", "unchecked"}) in generated Peer classes - Where from?
Eclipse complains about unnecessary @SuppressWarnings({"unused",
"unchecked"}) in generated Java files. I was not able to find the place
where this annotation is inserted. I need a hint.
Bye, Thomas