@@ -109,7 +109,7 @@ public class QName implements Serializable {
109
109
* XMLConstants.DEFAULT_NS_PREFIX}.</p>
110
110
*
111
111
* <p>The Namespace URI is not validated as a
112
- * <a href="http ://www.ietf.org/rfc/rfc2396.txt">URI reference</a>.
112
+ * <a href="https ://www.ietf.org/rfc/rfc2396.txt">URI reference</a>.
113
113
* The local part is not validated as a
114
114
* <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCName</a>
115
115
* as specified in <a href="http://www.w3.org/TR/REC-xml-names/">Namespaces
@@ -156,7 +156,7 @@ public QName(final String namespaceURI, final String localPart) {
156
156
* prefix is present or the prefix is not relevant.</p>
157
157
*
158
158
* <p>The Namespace URI is not validated as a
159
- * <a href="http ://www.ietf.org/rfc/rfc2396.txt">URI reference</a>.
159
+ * <a href="https ://www.ietf.org/rfc/rfc2396.txt">URI reference</a>.
160
160
* The local part and prefix are not validated as a
161
161
* <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCName</a>
162
162
* as specified in <a href="http://www.w3.org/TR/REC-xml-names/">Namespaces
@@ -329,16 +329,14 @@ public final int hashCode() {
329
329
}
330
330
331
331
/**
332
- * Returns the string representation of this {@code QName}.
332
+ * {@return the string representation of this {@code QName}}
333
333
* The format is:
334
334
* <pre> {@code
335
335
* {NamespaceURI}LocalPart
336
336
* }</pre>
337
337
* If {@code NamespaceURI} is {@code null}, only {@code LocalPart} is returned.
338
338
*
339
339
* @apiNote The {@code Prefix} is not returned in the string representation.
340
- *
341
- * @return the string representation of this {@code QName}
342
340
*/
343
341
public String toString () {
344
342
if (namespaceURI .equals (XMLConstants .NULL_NS_URI )) {
@@ -349,7 +347,7 @@ public String toString() {
349
347
}
350
348
351
349
/**
352
- * Returns a {@code QName} from its string representation.
350
+ * {@return a {@code QName} from its string representation}
353
351
* The string representation must be in the format returned by {@link #toString()}:
354
352
* <pre> {@code
355
353
* {NamespaceURI}LocalPart
@@ -359,15 +357,13 @@ public String toString() {
359
357
*
360
358
* @apiNote This method does not perform full validation of the resulting
361
359
* {@code QName}. The {@code NamespaceURI} is not validated as a
362
- * <a href="http ://www.ietf.org/rfc/rfc2396.txt">URI reference</a>.
360
+ * <a href="https ://www.ietf.org/rfc/rfc2396.txt">URI reference</a>.
363
361
* The {@code LocalPart} is not validated as a
364
362
* <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCName</a>
365
363
* as specified in
366
364
* <a href="http://www.w3.org/TR/REC-xml-names/">Namespaces in XML</a>.
367
365
*
368
366
* @param qNameAsString the string representation of the {@code QName}
369
- *
370
- * @return a {@code QName} from its string representation
371
367
* @throws IllegalArgumentException if {@code qNameAsString} is {@code null}
372
368
* or malformed
373
369
* @see #toString() QName.toString()
0 commit comments