Skip to content

Commit 69b4ac2

Browse files
committed
Integrated JAXB v4.
1 parent 5617b84 commit 69b4ac2

File tree

79 files changed

+1310
-1135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1310
-1135
lines changed

pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
</licenses>
4848

4949
<properties>
50-
<jaxb-api.version>3.0.1</jaxb-api.version>
51-
<jaxb-core.version>3.0.1</jaxb-core.version>
50+
<jaxb-api.version>4.0.0</jaxb-api.version>
51+
<jaxb-core.version>4.0.1</jaxb-core.version>
5252

53-
<maven.compiler.source>1.8</maven.compiler.source>
54-
<maven.compiler.target>1.8</maven.compiler.target>
53+
<maven.compiler.source>11</maven.compiler.source>
54+
<maven.compiler.target>11</maven.compiler.target>
5555
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5656
</properties>
5757

src/main/java/com/sun/tools/xjc/addon/xew/CommonUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ public static void addAnnotation(JVar field, JAnnotationUse annotation) {
134134
}
135135

136136
/**
137-
* Check that given field property has name customization ({@code <jaxb:property name="..." />}). See also
138-
* {@code org.glassfish.jaxb.core.api.impl.NameUtil}.
137+
* Check that given field property has name customization ({@code <jaxb:property name="..." />}).
139138
*
139+
* @see org.glassfish.jaxb.core.api.impl.NameUtil
140140
* @see com.sun.codemodel.JJavaName
141141
* @see com.sun.tools.xjc.reader.xmlschema.bindinfo.BIProperty#getCustomization(XSComponent)
142142
*/

src/test/generated_resources/annotation_reference/ClassCommon.java

+11-11
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
*
1313
* <p>The following schema fragment specifies the expected content contained within this class.
1414
*
15-
* <pre>
16-
* &lt;complexType name="class-common"&gt;
17-
* &lt;complexContent&gt;
18-
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
19-
* &lt;sequence&gt;
20-
* &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}byte"/&gt;
21-
* &lt;/sequence&gt;
22-
* &lt;/restriction&gt;
23-
* &lt;/complexContent&gt;
24-
* &lt;/complexType&gt;
25-
* </pre>
15+
* <pre>{@code
16+
* <complexType name="class-common">
17+
* <complexContent>
18+
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19+
* <sequence>
20+
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}byte"/>
21+
* </sequence>
22+
* </restriction>
23+
* </complexContent>
24+
* </complexType>
25+
* }</pre>
2626
*
2727
*
2828
*/

src/test/generated_resources/annotation_reference/ClassExt.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
*
1313
* <p>The following schema fragment specifies the expected content contained within this class.
1414
*
15-
* <pre>
16-
* &lt;complexType name="class-ext"&gt;
17-
* &lt;complexContent&gt;
18-
* &lt;extension base="{}class-common"&gt;
19-
* &lt;sequence&gt;
20-
* &lt;element name="country" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
21-
* &lt;element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
22-
* &lt;/sequence&gt;
23-
* &lt;/extension&gt;
24-
* &lt;/complexContent&gt;
25-
* &lt;/complexType&gt;
26-
* </pre>
15+
* <pre>{@code
16+
* <complexType name="class-ext">
17+
* <complexContent>
18+
* <extension base="{}class-common">
19+
* <sequence>
20+
* <element name="country" type="{http://www.w3.org/2001/XMLSchema}string"/>
21+
* <element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/>
22+
* </sequence>
23+
* </extension>
24+
* </complexContent>
25+
* </complexType>
26+
* }</pre>
2727
*
2828
*
2929
*/

src/test/generated_resources/annotation_reference/ClassesEu.java

+15-13
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
*
1515
* <p>The following schema fragment specifies the expected content contained within this class.
1616
*
17-
* <pre>
18-
* &lt;complexType name="classes-eu"&gt;
19-
* &lt;complexContent&gt;
20-
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
21-
* &lt;sequence&gt;
22-
* &lt;element name="class-eu" type="{}class-common" maxOccurs="unbounded"/&gt;
23-
* &lt;/sequence&gt;
24-
* &lt;/restriction&gt;
25-
* &lt;/complexContent&gt;
26-
* &lt;/complexType&gt;
27-
* </pre>
17+
* <pre>{@code
18+
* <complexType name="classes-eu">
19+
* <complexContent>
20+
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
21+
* <sequence>
22+
* <element name="class-eu" type="{}class-common" maxOccurs="unbounded"/>
23+
* </sequence>
24+
* </restriction>
25+
* </complexContent>
26+
* </complexType>
27+
* }</pre>
2828
*
2929
*
3030
*/
@@ -44,7 +44,7 @@ public class ClassesEu {
4444
* This accessor method returns a reference to the live list,
4545
* not a snapshot. Therefore any modification you make to the
4646
* returned list will be present inside the Jakarta XML Binding object.
47-
* This is why there is not a <CODE>set</CODE> method for the classEu property.
47+
* This is why there is not a {@code set} method for the classEu property.
4848
*
4949
* <p>
5050
* For example, to add a new item, do as follows:
@@ -58,10 +58,12 @@ public class ClassesEu {
5858
* {@link ClassCommon }
5959
*
6060
*
61+
* @return
62+
* The value of the classEu property.
6163
*/
6264
public List<ClassCommon> getClassEu() {
6365
if (classEu == null) {
64-
classEu = new ArrayList<ClassCommon>();
66+
classEu = new ArrayList<>();
6567
}
6668
return this.classEu;
6769
}

src/test/generated_resources/annotation_reference/ClassesUs.java

+15-13
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
*
1515
* <p>The following schema fragment specifies the expected content contained within this class.
1616
*
17-
* <pre>
18-
* &lt;complexType name="classes-us"&gt;
19-
* &lt;complexContent&gt;
20-
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
21-
* &lt;sequence&gt;
22-
* &lt;element name="class-us" type="{}class-ext" maxOccurs="unbounded"/&gt;
23-
* &lt;/sequence&gt;
24-
* &lt;/restriction&gt;
25-
* &lt;/complexContent&gt;
26-
* &lt;/complexType&gt;
27-
* </pre>
17+
* <pre>{@code
18+
* <complexType name="classes-us">
19+
* <complexContent>
20+
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
21+
* <sequence>
22+
* <element name="class-us" type="{}class-ext" maxOccurs="unbounded"/>
23+
* </sequence>
24+
* </restriction>
25+
* </complexContent>
26+
* </complexType>
27+
* }</pre>
2828
*
2929
*
3030
*/
@@ -44,7 +44,7 @@ public class ClassesUs {
4444
* This accessor method returns a reference to the live list,
4545
* not a snapshot. Therefore any modification you make to the
4646
* returned list will be present inside the Jakarta XML Binding object.
47-
* This is why there is not a <CODE>set</CODE> method for the classUs property.
47+
* This is why there is not a {@code set} method for the classUs property.
4848
*
4949
* <p>
5050
* For example, to add a new item, do as follows:
@@ -58,10 +58,12 @@ public class ClassesUs {
5858
* {@link ClassExt }
5959
*
6060
*
61+
* @return
62+
* The value of the classUs property.
6163
*/
6264
public List<ClassExt> getClassUs() {
6365
if (classUs == null) {
64-
classUs = new ArrayList<ClassExt>();
66+
classUs = new ArrayList<>();
6567
}
6668
return this.classUs;
6769
}

src/test/generated_resources/annotation_reference/Markup.java

+17-15
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
*
1717
* <p>The following schema fragment specifies the expected content contained within this class.
1818
*
19-
* <pre>
20-
* &lt;complexType name="markup"&gt;
21-
* &lt;complexContent&gt;
22-
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
23-
* &lt;choice maxOccurs="unbounded" minOccurs="0"&gt;
24-
* &lt;element ref="{}br"/&gt;
25-
* &lt;element ref="{}page"/&gt;
26-
* &lt;element ref="{}para"/&gt;
27-
* &lt;/choice&gt;
28-
* &lt;/restriction&gt;
29-
* &lt;/complexContent&gt;
30-
* &lt;/complexType&gt;
31-
* </pre>
19+
* <pre>{@code
20+
* <complexType name="markup">
21+
* <complexContent>
22+
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
23+
* <choice maxOccurs="unbounded" minOccurs="0">
24+
* <element ref="{}br"/>
25+
* <element ref="{}page"/>
26+
* <element ref="{}para"/>
27+
* </choice>
28+
* </restriction>
29+
* </complexContent>
30+
* </complexType>
31+
* }</pre>
3232
*
3333
*
3434
*/
@@ -52,7 +52,7 @@ public class Markup {
5252
* This accessor method returns a reference to the live list,
5353
* not a snapshot. Therefore any modification you make to the
5454
* returned list will be present inside the Jakarta XML Binding object.
55-
* This is why there is not a <CODE>set</CODE> method for the brOrPageOrPara property.
55+
* This is why there is not a {@code set} method for the brOrPageOrPara property.
5656
*
5757
* <p>
5858
* For example, to add a new item, do as follows:
@@ -68,10 +68,12 @@ public class Markup {
6868
* {@link JAXBElement }{@code <}{@link Object }{@code >}
6969
*
7070
*
71+
* @return
72+
* The value of the brOrPageOrPara property.
7173
*/
7274
public List<Object> getBrOrPageOrPara() {
7375
if (brOrPageOrPara == null) {
74-
brOrPageOrPara = new ArrayList<Object>();
76+
brOrPageOrPara = new ArrayList<>();
7577
}
7678
return this.brOrPageOrPara;
7779
}

src/test/generated_resources/annotation_reference/ObjectFactory.java

+18-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public ObjectFactory() {
3737
/**
3838
* Create an instance of {@link Para }
3939
*
40+
* @return
41+
* the new instance of {@link Para }
4042
*/
4143
public Para createPara() {
4244
return new Para();
@@ -45,6 +47,8 @@ public Para createPara() {
4547
/**
4648
* Create an instance of {@link Markup }
4749
*
50+
* @return
51+
* the new instance of {@link Markup }
4852
*/
4953
public Markup createMarkup() {
5054
return new Markup();
@@ -53,6 +57,8 @@ public Markup createMarkup() {
5357
/**
5458
* Create an instance of {@link SearchEu }
5559
*
60+
* @return
61+
* the new instance of {@link SearchEu }
5662
*/
5763
public SearchEu createSearchEu() {
5864
return new SearchEu();
@@ -61,6 +67,8 @@ public SearchEu createSearchEu() {
6167
/**
6268
* Create an instance of {@link SearchMulti }
6369
*
70+
* @return
71+
* the new instance of {@link SearchMulti }
6472
*/
6573
public SearchMulti createSearchMulti() {
6674
return new SearchMulti();
@@ -69,6 +77,8 @@ public SearchMulti createSearchMulti() {
6977
/**
7078
* Create an instance of {@link ClassCommon }
7179
*
80+
* @return
81+
* the new instance of {@link ClassCommon }
7282
*/
7383
public ClassCommon createClassCommon() {
7484
return new ClassCommon();
@@ -77,6 +87,8 @@ public ClassCommon createClassCommon() {
7787
/**
7888
* Create an instance of {@link ClassExt }
7989
*
90+
* @return
91+
* the new instance of {@link ClassExt }
8092
*/
8193
public ClassExt createClassExt() {
8294
return new ClassExt();
@@ -85,6 +97,8 @@ public ClassExt createClassExt() {
8597
/**
8698
* Create an instance of {@link ClassesEu }
8799
*
100+
* @return
101+
* the new instance of {@link ClassesEu }
88102
*/
89103
public ClassesEu createClassesEu() {
90104
return new ClassesEu();
@@ -93,6 +107,8 @@ public ClassesEu createClassesEu() {
93107
/**
94108
* Create an instance of {@link ClassesUs }
95109
*
110+
* @return
111+
* the new instance of {@link ClassesUs }
96112
*/
97113
public ClassesUs createClassesUs() {
98114
return new ClassesUs();
@@ -108,7 +124,7 @@ public ClassesUs createClassesUs() {
108124
*/
109125
@XmlElementDecl(namespace = "", name = "br")
110126
public JAXBElement<Object> createBr(Object value) {
111-
return new JAXBElement<Object>(_Br_QNAME, Object.class, null, value);
127+
return new JAXBElement<>(_Br_QNAME, Object.class, null, value);
112128
}
113129

114130
/**
@@ -121,7 +137,7 @@ public JAXBElement<Object> createBr(Object value) {
121137
*/
122138
@XmlElementDecl(namespace = "", name = "page")
123139
public JAXBElement<Object> createPage(Object value) {
124-
return new JAXBElement<Object>(_Page_QNAME, Object.class, null, value);
140+
return new JAXBElement<>(_Page_QNAME, Object.class, null, value);
125141
}
126142

127143
}

src/test/generated_resources/annotation_reference/Para.java

+15-13
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
*
1616
* <p>The following schema fragment specifies the expected content contained within this class.
1717
*
18-
* <pre>
19-
* &lt;complexType&gt;
20-
* &lt;complexContent&gt;
21-
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
22-
* &lt;sequence&gt;
23-
* &lt;element name="sub" type="{}markup" maxOccurs="unbounded"/&gt;
24-
* &lt;/sequence&gt;
25-
* &lt;/restriction&gt;
26-
* &lt;/complexContent&gt;
27-
* &lt;/complexType&gt;
28-
* </pre>
18+
* <pre>{@code
19+
* <complexType>
20+
* <complexContent>
21+
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22+
* <sequence>
23+
* <element name="sub" type="{}markup" maxOccurs="unbounded"/>
24+
* </sequence>
25+
* </restriction>
26+
* </complexContent>
27+
* </complexType>
28+
* }</pre>
2929
*
3030
*
3131
*/
@@ -46,7 +46,7 @@ public class Para {
4646
* This accessor method returns a reference to the live list,
4747
* not a snapshot. Therefore any modification you make to the
4848
* returned list will be present inside the Jakarta XML Binding object.
49-
* This is why there is not a <CODE>set</CODE> method for the sub property.
49+
* This is why there is not a {@code set} method for the sub property.
5050
*
5151
* <p>
5252
* For example, to add a new item, do as follows:
@@ -60,10 +60,12 @@ public class Para {
6060
* {@link Markup }
6161
*
6262
*
63+
* @return
64+
* The value of the sub property.
6365
*/
6466
public List<Markup> getSub() {
6567
if (sub == null) {
66-
sub = new ArrayList<Markup>();
68+
sub = new ArrayList<>();
6769
}
6870
return this.sub;
6971
}

0 commit comments

Comments
 (0)