users@jaxb.java.net

xjc - force consistent order in generated annotations?

From: Jason Harrop <jharrop_at_gmail.com>
Date: Fri, 11 Apr 2008 20:24:49 +1000

Hi

Every time i generate classes using XJC, for a field List<Object> say.
it generates the @XmlElementRef annotations in a different order.

And for a

     List<Object> getXXXX()

style method, XJC shuffles the order of the Javadoc comment lines:

    * {_at_link JAXBElement }{_at_code <}{_at_link blagh }{_at_code >}

No harm in either of these, except that if you have modified the
classes (as I do), and want to use diff/patch (as I do), diff reports
lots of changes which don't matter.

Is there an existing solution for this, a plugin perhaps?

thanks

Jason