Skip to content

Commit 34f0a6e

Browse files
8305593: Add @SPEC tags in java.desktop
Reviewed-by: prr
1 parent 0be3905 commit 34f0a6e

File tree

17 files changed

+53
-19
lines changed

17 files changed

+53
-19
lines changed

Diff for: src/java.desktop/share/classes/java/awt/Desktop.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ public void mail() throws IOException {
569569
* <p> A {@code mailto:} URI can specify message fields
570570
* including <i>"to"</i>, <i>"cc"</i>, <i>"subject"</i>,
571571
* <i>"body"</i>, etc. See <a
572-
* href="http://www.ietf.org/rfc/rfc2368.txt">The mailto URL
572+
* href="https://www.rfc-editor.org/info/rfc2368">The mailto URL
573573
* scheme (RFC 2368)</a> for the {@code mailto:} URI specification
574574
* details.
575575
*
@@ -587,6 +587,8 @@ public void mail() throws IOException {
587587
* {@code AWTPermission("showWindowWithoutWarningBanner")}
588588
* permission, or the calling thread is not allowed to create a
589589
* subprocess
590+
* @spec https://www.rfc-editor.org/info/rfc2368
591+
* RFC 2368: The mailto URL scheme
590592
* @see java.net.URI
591593
* @see java.awt.AWTPermission
592594
*/

Diff for: src/java.desktop/share/classes/java/awt/package-info.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
* <ul>
5555
* <li><a href="doc-files/FocusSpec.html">The AWT Focus Subsystem</a>
5656
* <li><a href="doc-files/Modality.html">The AWT Modality</a>
57-
* <li><a href="{@docRoot}/../specs/AWT_Native_Interface.html">
58-
* The Java AWT Native Interface (JAWT)</a>
5957
* </ul>
6058
*
59+
* @spec AWT_Native_Interface.html
60+
* The Java AWT Native Interface Specification and Guide
6161
* @since 1.0
6262
*/
6363
package java.awt;

Diff for: src/java.desktop/share/classes/java/awt/peer/DesktopPeer.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,13 @@ public interface DesktopPeer {
9999
*
100100
* @param mailtoURL represents a mailto URL with specified values of the message.
101101
* The syntax of mailto URL is defined by
102-
* <a href="http://www.ietf.org/rfc/rfc2368.txt">RFC2368: The mailto
102+
* <a href="https://www.rfc-editor.org/info/rfc2368">RFC2368: The mailto
103103
* URL scheme</a>
104104
* @throws IOException If the user default mail client is not found,
105105
* or it fails to be launched.
106+
*
107+
* @spec https://www.rfc-editor.org/info/rfc2368
108+
* RFC 2368: The mailto URL scheme
106109
*/
107110
void mail(URI mailtoURL) throws IOException;
108111

Diff for: src/java.desktop/share/classes/javax/imageio/metadata/doc-files/tiff_metadata.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,9 @@ <h3><a id="Compression">Compression</a></h3>
565565
<th scope="row">8</th>
566566
<td>Deflate</td>
567567
<td>"Zip-in-TIFF" compression (see note following this table)</td>
568-
<td><a href="https://tools.ietf.org/html/rfc1950">
568+
<td><a href="https://www.rfc-editor.org/info/rfc1950">
569569
ZLIB Compressed Data Format Specification</a>,
570-
<a href="https://tools.ietf.org/html/rfc1951">
570+
<a href="https://www.rfc-editor.org/info/rfc1951">
571571
DEFLATE Compressed Data Format Specification</a></td>
572572
</tr>
573573
<tr>

Diff for: src/java.desktop/share/classes/javax/imageio/plugins/tiff/BaselineTIFFTagSet.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ public final class BaselineTIFFTagSet extends TIFFTagSet {
222222
* A value to be used with the "Compression" tag.
223223
*
224224
* @see #TAG_COMPRESSION
225-
* @see <a href="https://tools.ietf.org/html/rfc1951">DEFLATE specification</a>
225+
* @spec https://www.rfc-editor.org/info/rfc1951
226+
* RFC 1951: DEFLATE Compressed Data Format Specification version 1.3
226227
*/
227228
public static final int COMPRESSION_DEFLATE = 32946;
228229

Diff for: src/java.desktop/share/classes/javax/imageio/plugins/tiff/FaxTIFFTagSet.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929

3030
/**
3131
* A class representing the extra tags found in a
32-
* <a href="https://tools.ietf.org/html/rfc2306.html">TIFF-F</a> (RFC 2036) file.
32+
* <a href="https://www.rfc-editor.org/info/rfc2306">TIFF-F</a> (RFC 2036) file.
3333
*
34+
* @spec https://www.rfc-editor.org/info/rfc2306
35+
* RFC 2306: Tag Image File Format (TIFF) - F Profile for Facsimile
3436
* @since 9
3537
*/
3638
public final class FaxTIFFTagSet extends TIFFTagSet {

Diff for: src/java.desktop/share/classes/javax/print/DocFlavor.java

+9-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
* <ul>
4040
* <li><b>MIME type.</b> This is a Multipurpose Internet Mail Extensions
4141
* (MIME) media type (as defined in
42-
* <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a> and
43-
* <a href="http://www.ietf.org/rfc/rfc2046.txt">RFC 2046</a>) that specifies
42+
* <a href="https://www.rfc-editor.org/info/rfc2045">RFC 2045</a> and
43+
* <a href="https://www.rfc-editor.org/info/rfc2046">RFC 2046</a>) that specifies
4444
* how the print data is to be interpreted. The charset of text data should be
4545
* the IANA MIME-preferred name, or its canonical name if no preferred name is
4646
* specified. Additionally a few historical names supported by earlier
@@ -383,6 +383,10 @@
383383
* Print Service instance supports without having to load the representation
384384
* classes, which may be problematic for limited-resource clients.
385385
*
386+
* @spec https://www.rfc-editor.org/info/rfc2045
387+
* RFC 2045: Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
388+
* @spec https://www.rfc-editor.org/info/rfc2046
389+
* RFC 2046: Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
386390
* @author Alan Kaminsky
387391
*/
388392
public class DocFlavor implements Serializable, Cloneable {
@@ -396,13 +400,15 @@ public class DocFlavor implements Serializable, Cloneable {
396400
/**
397401
* A string representing the host operating system encoding. This will
398402
* follow the conventions documented in
399-
* <a href="http://www.ietf.org/rfc/rfc2278.txt">
403+
* <a href="https://www.rfc-editor.org/info/rfc2278">
400404
* <i>RFC&nbsp;2278:&nbsp;IANA Charset Registration Procedures</i></a>
401405
* except where historical names are returned for compatibility with
402406
* previous versions of the Java platform. The value returned from method is
403407
* valid only for the VM which returns it, for use in a {@code DocFlavor}.
404408
* This is the charset for all the "HOST" pre-defined {@code DocFlavors} in
405409
* the executing VM.
410+
* @spec https://www.rfc-editor.org/info/rfc2278
411+
* RFC 2278: IANA Charset Registration Procedures
406412
*/
407413
@SuppressWarnings("removal")
408414
public static final String hostEncoding =

Diff for: src/java.desktop/share/classes/javax/print/MimeType.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
/**
3939
* Class {@code MimeType} encapsulates a Multipurpose Internet Mail Extensions
4040
* (MIME) media type as defined in
41-
* <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a> and
42-
* <a href="http://www.ietf.org/rfc/rfc2046.txt">RFC 2046</a>. A MIME type
41+
* <a href="https://www.rfc-editor.org/info/rfc2045">RFC 2045</a> and
42+
* <a href="https://www.rfc-editor.org/info/rfc2046">RFC 2046</a>. A MIME type
4343
* object is part of a {@link DocFlavor DocFlavor} object and specifies the
4444
* format of the print data.
4545
* <p>
@@ -74,6 +74,10 @@
7474
* </ul>
7575
*
7676
* @author Alan Kaminsky
77+
* @spec https://www.rfc-editor.org/info/rfc2045
78+
* RFC 2045: Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
79+
* @spec https://www.rfc-editor.org/info/rfc2046
80+
* RFC 2046: Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
7781
*/
7882
class MimeType implements Serializable, Cloneable {
7983

Diff for: src/java.desktop/share/classes/javax/print/attribute/standard/Compression.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ public class Compression extends EnumSyntax implements DocAttribute {
6666

6767
/**
6868
* GNU zip compression technology described in
69-
* <a href="http://www.ietf.org/rfc/rfc1952.txt">RFC 1952</a>.
69+
* <a href="https://www.rfc-editor.org/info/rfc1952">RFC 1952</a>.
70+
* @spec https://www.rfc-editor.org/info/rfc1952
71+
* RFC 1952: GZIP file format specification version 4.3
7072
*/
7173
public static final Compression GZIP = new Compression(2);
7274

Diff for: src/java.desktop/share/classes/javax/print/attribute/standard/Fidelity.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545
* name returned by {@code getName()} is the IPP attribute name. The
4646
* enumeration's integer value is the IPP enum value. The {@code toString()}
4747
* method returns the IPP string representation of the attribute value. See
48-
* <a href="http://www.ietf.org/rfc/rfc2911.txt">RFC 2911</a> Section 15.1 for a
48+
* <a href="https://www.rfc-editor.org/info/rfc2911">RFC 2911</a> Section 15.1 for a
4949
* fuller description of the IPP fidelity attribute.
50+
*
51+
* @spec https://www.rfc-editor.org/info/rfc2911
52+
* RFC 2911: Internet Printing Protocol/1.1: Model and Semantics
5053
*/
5154
public final class Fidelity extends EnumSyntax
5255
implements PrintJobAttribute, PrintRequestAttribute {

Diff for: src/java.desktop/share/classes/javax/print/attribute/standard/MediaSizeName.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
* <b>IPP Compatibility:</b> {@code MediaSizeName} is a representation class for
4242
* values of the IPP "media" attribute which names media sizes. The names of the
4343
* media sizes correspond to those in the IPP 1.1 RFC
44-
* <a href="http://www.ietf.org/rfc/rfc2911.txt">RFC 2911</a>
44+
* <a href="https://www.rfc-editor.org/info/rfc2911">RFC 2911</a>
45+
*
46+
* @spec https://www.rfc-editor.org/info/rfc2911
47+
* RFC 2911: Internet Printing Protocol/1.1: Model and Semantics
4548
*/
4649
public class MediaSizeName extends Media {
4750

Diff for: src/java.desktop/share/classes/javax/print/attribute/standard/package-info.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
* based on the Internet Printing Protocol (IPP) attributes as defined in the
7878
* Internet RFC document, <i>RFC 2911 Internet Printing Protocol/1.1: Model and
7979
* Semantics</i> dated September 2000. See
80-
* <a href="http://www.ietf.org/rfc/rfc2911.txt">RFC 2911</a> for more
80+
* <a href="https://www.rfc-editor.org/info/rfc2911">RFC 2911</a> for more
8181
* information. The descriptive text for each attribute class was taken largely
8282
* from the above documents. The above authors' contribution to the API is
8383
* gratefully acknowledged.
@@ -590,6 +590,8 @@
590590
* later time. {@code IllegalArgumentException} and {@code NullPointerException}
591591
* are examples of typical and acceptable run time exceptions for such cases.
592592
*
593+
* @spec https://www.rfc-editor.org/info/rfc2911
594+
* RFC 2911: Internet Printing Protocol/1.1: Model and Semantics
593595
* @since 1.4
594596
*/
595597
package javax.print.attribute.standard;

Diff for: src/java.desktop/share/classes/javax/print/package-info.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* {@code javax.print.attribute.standard} package enumerates all of the standard
6060
* attributes supported by the API, most of which are implementations of
6161
* attributes specified in the IETF Specification,
62-
* <a href="http://www.ietf.org/rfc/rfc2911.txt">RFC 2911 Internet Printing
62+
* <a href="https://www.rfc-editor.org/info/rfc2911">RFC 2911 Internet Printing
6363
* Protocol, 1.1: Model and Semantics</a>, dated September 2000. The attributes
6464
* specified in {@code javax.print.attribute.standard} include common
6565
* capabilities, such as: resolution, copies, media sizes, job priority, and
@@ -127,6 +127,8 @@
127127
* later time. {@code IllegalArgumentException} and {@code NullPointerException}
128128
* are examples of typical and acceptable run time exceptions for such cases.
129129
*
130+
* @spec https://www.rfc-editor.org/info/rfc2911
131+
* RFC 2911: Internet Printing Protocol/1.1: Model and Semantics
130132
* @since 1.4
131133
*/
132134
package javax.print;

Diff for: src/java.desktop/share/classes/javax/swing/JEditorPane.java

+2
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,8 @@ private void writeObject(ObjectOutputStream s) throws IOException {
16151615
* it set the client {@link #putClientProperty property} with this name
16161616
* to <code>Boolean.TRUE</code>.
16171617
*
1618+
* @spec https://www.w3.org/TR/CSS22
1619+
* Cascading Style Sheets Level 2 Revision 2 (CSS 2.2) Specification
16181620
* @since 1.5
16191621
*/
16201622
public static final String W3C_LENGTH_UNITS = "JEditorPane.w3cLengthUnits";

Diff for: src/java.desktop/share/classes/javax/swing/text/html/CSS.java

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
* unless noted, so that
127127
* p { margin-top: 10% } will be treated as if no margin-top was specified.</b>
128128
*
129+
* @spec https://www.w3.org/TR/REC-CSS1 Cascading Style Sheets, level 1
129130
* @author Timothy Prinzing
130131
* @author Scott Violet
131132
* @see StyleSheet

Diff for: src/java.desktop/share/classes/javax/swing/text/html/package-info.java

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* which HTMLEditorKit is based.
4444
* </ul>
4545
*
46+
* @spec https://www.w3.org/TR/REC-html32.html HTML 3.2 Reference Specification
4647
* @since 1.2
4748
* @serial exclude
4849
*/

Diff for: src/java.desktop/share/classes/sun/awt/image/PNGImageDecoder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import java.awt.Color;
3333

3434
/** PNG - Portable Network Graphics - image file reader.
35-
See <a href=http://www.ietf.org/rfc/rfc2083.txt>RFC2083</a> for details. */
35+
See <a href="https://www.rfc-editor.org/info/rfc2083">RFC2083</a> for details. */
3636
public class PNGImageDecoder extends ImageDecoder
3737
{
3838
private static final int GRAY=0;

0 commit comments

Comments
 (0)