Community
Participate
Working Groups
The addToSchemaType method is over 550 lines long, which makes it very difficult to work with when adding new support or debugging issues. This method needs to be cleaned up and broken apart into smaller, less verbose methods. There are also one or more places where we check for a given annotation as opposed to asking the Property. For XML metadata/annotation correctness we should be checking the property.
Created attachment 178523 [details] Contains proposed changes. 1) Added constants for '@', "##default", etc. 2) Renamed inner class 'XmlPathResult' to 'AddToSchemaResult' and added a ComplexType attribute. 3) Cleaned up 'addToSchemaType' method - new methods were added at the end of the class.
Reviewed by: blaise.doughan@oracle.com Tests: all unit tests pass as expected
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink