Closed glassfishrobot closed 14 years ago
Reported by alesinskyy
alesinskyy said: For version 0.5.2 it was enough to add call to JMethod.annotate like below: protected JMethod generateObject$Equals(final ClassOutline classOutline, final JDefinedClass theClass) { final JMethod objectEquals = theClass.method(JMod.PUBLIC, theClass .owner().BOOLEAN, "equals"); { objectEquals.annotate(Override.class);
lexi said: Continued as: http://jira.highsource.org/browse/JIIB-33
Was assigned to lexi
This issue was imported from java.net JIRA JAXB2_COMMONS-24
Marked as won't fix on Wednesday, August 4th 2010, 6:07:35 am
I hardly understand why JAXB2 Basics Plugins, namely, Equals, HashCode and ToString do not add @Override annotation to generated methods (equals(Object), hasCode(), toString())). It would reduce the number of compilation warnings on generated classes - and on the other side should be extremely easy to implement.
Environment
Operating System: All Platform: All
Affected Versions
[current]