Skip to content

Commit 58e8914

Browse files
committed
use return construct; s/http/https
1 parent 7a94395 commit 58e8914

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/java.xml/share/classes/javax/xml/catalog/CatalogResolver.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it

src/java.xml/share/classes/javax/xml/namespace/QName.java

+5-9
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public class QName implements Serializable {
109109
* XMLConstants.DEFAULT_NS_PREFIX}.</p>
110110
*
111111
* <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>.
113113
* The local part is not validated as a
114114
* <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCName</a>
115115
* 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) {
156156
* prefix is present or the prefix is not relevant.</p>
157157
*
158158
* <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>.
160160
* The local part and prefix are not validated as a
161161
* <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCName</a>
162162
* as specified in <a href="http://www.w3.org/TR/REC-xml-names/">Namespaces
@@ -329,16 +329,14 @@ public final int hashCode() {
329329
}
330330

331331
/**
332-
* Returns the string representation of this {@code QName}.
332+
* {@return the string representation of this {@code QName}}
333333
* The format is:
334334
* <pre> {@code
335335
* {NamespaceURI}LocalPart
336336
* }</pre>
337337
* If {@code NamespaceURI} is {@code null}, only {@code LocalPart} is returned.
338338
*
339339
* @apiNote The {@code Prefix} is not returned in the string representation.
340-
*
341-
* @return the string representation of this {@code QName}
342340
*/
343341
public String toString() {
344342
if (namespaceURI.equals(XMLConstants.NULL_NS_URI)) {
@@ -349,7 +347,7 @@ public String toString() {
349347
}
350348

351349
/**
352-
* Returns a {@code QName} from its string representation.
350+
* {@return a {@code QName} from its string representation}
353351
* The string representation must be in the format returned by {@link #toString()}:
354352
* <pre> {@code
355353
* {NamespaceURI}LocalPart
@@ -359,15 +357,13 @@ public String toString() {
359357
*
360358
* @apiNote This method does not perform full validation of the resulting
361359
* {@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>.
363361
* The {@code LocalPart} is not validated as a
364362
* <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCName</a>
365363
* as specified in
366364
* <a href="http://www.w3.org/TR/REC-xml-names/">Namespaces in XML</a>.
367365
*
368366
* @param qNameAsString the string representation of the {@code QName}
369-
*
370-
* @return a {@code QName} from its string representation
371367
* @throws IllegalArgumentException if {@code qNameAsString} is {@code null}
372368
* or malformed
373369
* @see #toString() QName.toString()

0 commit comments

Comments
 (0)