Skip to content

Commit 8e787dc

Browse files
antoniosanctlukasj
andauthored
fix typo indicated in #234 (#295)
Signed-off-by: Antonio Santos Izaguirre <[email protected]> Co-authored-by: Lukas Jungmann <[email protected]>
1 parent b2c0e7a commit 8e787dc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

api/src/main/java/jakarta/xml/bind/annotation/XmlElementDecl.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,17 @@
157157
* This specifies the namespace name of the XML element whose local
158158
* name is specified by {@code substitutionHeadName()}.
159159
* <p>
160-
* If {@code susbtitutionHeadName()} is "", then this
160+
* If {@code substitutionHeadName()} is "", then this
161161
* value can only be "##default". But the value is ignored
162-
* since this element is not part of susbtitution group when the
163-
* value of {@code susbstitutionHeadName()} is "".
162+
* since this element is not part of substitution group when the
163+
* value of {@code substitutionHeadName()} is "".
164164
* <p>
165-
* If {@code susbtitutionHeadName()} is not "" and the value is
165+
* If {@code substitutionHeadName()} is not "" and the value is
166166
* "##default", then the namespace name is the namespace name to
167167
* which the package of the containing class, marked with {@link
168168
* XmlRegistry }, is mapped.
169169
* <p>
170-
* If {@code susbtitutionHeadName()} is not "" and the value is
170+
* If {@code substitutionHeadName()} is not "" and the value is
171171
* not "##default", then the value is the namespace name.
172172
*
173173
* @see #substitutionHeadName()

api/src/main/java/jakarta/xml/bind/annotation/XmlElementRef.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
* that doesn't have {@link XmlRootElement}. But they can't show up in an
145145
* XML instance (because they don't have XML element names).
146146
*
147-
* <p><b>Example 2: XML Schema Susbstitution group support</b>
147+
* <p><b>Example 2: XML Schema Substitution group support</b>
148148
* <p> The following example shows the annotations for XML Schema
149149
* substitution groups. The annotations and the ObjectFactory are
150150
* derived from the schema.

0 commit comments

Comments
 (0)