Skip to content

Commit acb5f65

Browse files
committedNov 2, 2020
8211958: Broken links in java.desktop files
Reviewed-by: aivanov
1 parent bc6085b commit acb5f65

9 files changed

+39
-43
lines changed
 

‎src/java.desktop/share/classes/java/awt/Component.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
* <a href="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">
208208
* How to Use the Focus Subsystem</a>,
209209
* a section in <em>The Java Tutorial</em>, and the
210-
* <a href="../../java/awt/doc-files/FocusSpec.html">Focus Specification</a>
210+
* <a href="doc-files/FocusSpec.html">Focus Specification</a>
211211
* for more information.
212212
*
213213
* @author Arthur van Hoff
@@ -7651,7 +7651,7 @@ public void requestFocus(FocusEvent.Cause cause) {
76517651
* @param temporary true if the focus change is temporary,
76527652
* such as when the window loses the focus; for
76537653
* more information on temporary focus changes see the
7654-
*<a href="../../java/awt/doc-files/FocusSpec.html">Focus Specification</a>
7654+
*<a href="doc-files/FocusSpec.html">Focus Specification</a>
76557655
* @return {@code false} if the focus change request is guaranteed to
76567656
* fail; {@code true} if it is likely to succeed
76577657
* @see java.awt.event.FocusEvent
@@ -7719,7 +7719,7 @@ protected boolean requestFocus(boolean temporary) {
77197719
* @param temporary true if the focus change is temporary,
77207720
* such as when the window loses the focus; for
77217721
* more information on temporary focus changes see the
7722-
*<a href="../../java/awt/doc-files/FocusSpec.html">Focus Specification</a>
7722+
*<a href="doc-files/FocusSpec.html">Focus Specification</a>
77237723
*
77247724
* @param cause the cause why the focus is requested
77257725
* @return {@code false} if the focus change request is guaranteed to
@@ -7886,7 +7886,7 @@ public boolean requestFocusInWindow(FocusEvent.Cause cause) {
78867886
* @param temporary true if the focus change is temporary,
78877887
* such as when the window loses the focus; for
78887888
* more information on temporary focus changes see the
7889-
*<a href="../../java/awt/doc-files/FocusSpec.html">Focus Specification</a>
7889+
*<a href="doc-files/FocusSpec.html">Focus Specification</a>
78907890
* @return {@code false} if the focus change request is guaranteed to
78917891
* fail; {@code true} if it is likely to succeed
78927892
* @see #requestFocus

‎src/java.desktop/share/classes/java/awt/Container.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
* <a href="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">
8484
* How to Use the Focus Subsystem</a>,
8585
* a section in <em>The Java Tutorial</em>, and the
86-
* <a href="../../java/awt/doc-files/FocusSpec.html">Focus Specification</a>
86+
* <a href="doc-files/FocusSpec.html">Focus Specification</a>
8787
* for more information.
8888
*
8989
* @author Arthur van Hoff

‎src/java.desktop/share/classes/java/awt/DefaultFocusTraversalPolicy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* <a href="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">
5858
* How to Use the Focus Subsystem</a>,
5959
* a section in <em>The Java Tutorial</em>, and the
60-
* <a href="../../java/awt/doc-files/FocusSpec.html">Focus Specification</a>
60+
* <a href="doc-files/FocusSpec.html">Focus Specification</a>
6161
* for more information.
6262
*
6363
* @author David Mendenhall

‎src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* <a href="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">
5353
* How to Use the Focus Subsystem</a>,
5454
* a section in <em>The Java Tutorial</em>, and the
55-
* <a href="../../java/awt/doc-files/FocusSpec.html">Focus Specification</a>
55+
* <a href="doc-files/FocusSpec.html">Focus Specification</a>
5656
* for more information.
5757
*
5858
* @author David Mendenhall

‎src/java.desktop/share/classes/java/awt/FocusTraversalPolicy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* <a href="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">
5353
* How to Use the Focus Subsystem</a>,
5454
* a section in <em>The Java Tutorial</em>, and the
55-
* <a href="../../java/awt/doc-files/FocusSpec.html">Focus Specification</a>
55+
* <a href="doc-files/FocusSpec.html">Focus Specification</a>
5656
* for more information.
5757
*
5858
* @author David Mendenhall

‎src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2020, 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
@@ -88,7 +88,7 @@
8888
* <a href="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">
8989
* How to Use the Focus Subsystem</a>,
9090
* a section in <em>The Java Tutorial</em>, and the
91-
* <a href="../../java/awt/doc-files/FocusSpec.html">Focus Specification</a>
91+
* <a href="doc-files/FocusSpec.html">Focus Specification</a>
9292
* for more information.
9393
*
9494
* @author David Mendenhall

‎src/java.desktop/share/classes/java/awt/doc-files/DesktopProperties.html

+9-11
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ <h1>AWT Desktop Properties</h1>
3636

3737
The following refers to standard AWT desktop properties that
3838
may be obtained via the
39-
<a href="../Toolkit.html#getDesktopProperty(java.lang.String)">
40-
<code>Toolkit.getDesktopProperty</code></a> method.
39+
{@link java.awt.Toolkit#getDesktopProperty(java.lang.String)
40+
Toolkit.getDesktopProperty} method.
4141
<p>
4242
Each desktop property is named by a unique string, which
4343
is the "name" of that property.
@@ -86,9 +86,9 @@ <h2>Desktop Font Rendering Hints</h2>
8686
These are applied by platform-specific heavyweight components.
8787
However an application may want to render text using the same text
8888
antialiasing on a drawing surface or lightweight (non-platform) component using
89-
<a href="../Graphics2D.html"> <code>Graphics2D</code></a> methods.
89+
{@link java.awt.Graphics2D Graphics2D} methods.
9090
This is particularly important when creating
91-
<a href="../../../javax/swing/JComponent.html"> Swing components</a> which
91+
{@link javax.swing.JComponent Swing components} which
9292
are required to appear consistent with native desktop components or other
9393
Swing components.
9494

@@ -97,9 +97,8 @@ <h3>Basic Usage</h3>
9797
<b>"awt.font.desktophints"</b>
9898
can be used to obtain the rendering hints that best match the desktop settings.
9999

100-
The return value is a
101-
<a href="../../util/Map.html"> Map</a> of
102-
<a href="../RenderingHints.html"> <code>RenderingHints</code></a> which
100+
The return value is a {@link java.util.Map Map} of
101+
{@link java.awt.RenderingHints RenderingHints} which
103102
can be directly applied to a <code>Graphics2D</code>.
104103
<p>
105104
It is a <code>Map</code> as more than one hint may be needed.
@@ -116,8 +115,7 @@ <h3>Advanced Usage Tips</h3>
116115
<h4>Listening for changes</h4>
117116
<p>
118117
An application can listen for changes in the property
119-
using a <a href="../../beans/PropertyChangeListener.html">
120-
<code>PropertyChangeListener</code></a> :
118+
using a {@link java.beans.PropertyChangeListener PropertyChangeListener}:
121119
<pre><code>
122120
tk.addPropertyChangeListener("awt.font.desktophints", pcl);
123121
</code></pre>
@@ -134,10 +132,10 @@ <h4>Listening for changes</h4>
134132
<h4>Text Measurement</h4>
135133
<p>
136134
Text always needs to be measured using the same
137-
<a href="../font/FontRenderContext.html"> <code>FontRenderContext</code></a>
135+
{@link java.awt.font.FontRenderContext FontRenderContext}
138136
as used for rendering. The text anti-aliasing hint is a component of
139137
the <code>FontRenderContext</code>.
140-
A <a href="../FontMetrics.html"> <code>FontMetrics</code></a>
138+
A {@link java.awt.FontMetrics FontMetrics}
141139
obtained from the <code>Graphics</code> object on which the hint
142140
has been set will measure text appropriately.
143141
This is not a unique requirement for clients that specify this hint

‎src/java.desktop/share/classes/javax/imageio/metadata/doc-files/tiff_metadata.html

+16-18
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>TIFF Metadata Format Specification and Usage Notes</title>
66
</head>
77
<!--
8-
Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
8+
Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
99
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1010
1111
This code is free software; you can redistribute it and/or modify it
@@ -72,9 +72,9 @@ <h1>TIFF Metadata Format Specification and Usage Notes</h1>
7272

7373
<h2><a id="Reading">Reading Images</a></h2>
7474

75-
TIFF images are read by an <a href="../../ImageReader.html">ImageReader</a>
75+
TIFF images are read by an {@link javax.imageio.ImageReader ImageReader}
7676
which may be controlled by its public interface as well as via a supplied
77-
<a href="../../plugins/tiff/TIFFImageReadParam.html">TIFFImageReadParam</a>.
77+
{@link javax.imageio.plugins.tiff.TIFFImageReadParam TIFFImageReadParam}.
7878

7979
<!-- <h3>Supported Image Types</h3> -->
8080

@@ -90,7 +90,7 @@ <h3><a id="ColorConversionRead">Color Conversion</a></h3>
9090
<h3><a id="ColorSpacesRead">Color Spaces</a></h3>
9191

9292
The raw color space assigned by default, i.e., in the absence of a
93-
user-supplied <a href="../../ImageTypeSpecifier.html">ImageTypeSpecifier</a>,
93+
user-supplied {@link javax.imageio.ImageTypeSpecifier ImageTypeSpecifier},
9494
will be the first among the following which applies:
9595

9696
<ul>
@@ -158,8 +158,8 @@ <h3><a id="ColorSpacesRead">Color Spaces</a></h3>
158158
<h3><a id="ICCProfilesRead">ICC Profiles</a></h3>
159159

160160
If an ICC profile is contained in the image metadata
161-
(<a href="../../plugins/tiff/BaselineTIFFTagSet.html">
162-
BaselineTIFFTagSet</a>.TAG_ICC_PROFILE, tag number 34675),
161+
({@link javax.imageio.plugins.tiff.BaselineTIFFTagSet BaselineTIFFTagSet}.
162+
TAG_ICC_PROFILE, tag number 34675),
163163
an attempt will be made to use it to create the color space
164164
of the loaded image. It will be used if the data layout is of component type
165165
and the number of samples per pixel equals or is one greater than the number
@@ -174,15 +174,13 @@ <h3><a id="ICCProfilesRead">ICC Profiles</a></h3>
174174
<li>Obtain the image metadata from
175175
<code>ImageReader.getImageMetadata</code></li>
176176
<li>Extract the ICC profile field and its value.</li>
177-
<li>Create an <a href="../../../../java/awt/color/ICC_ColorSpace.html">
178-
ICC_ColorSpace</a> from an
179-
<a href="../../../../java/awt/color/ICC_Profile.html">
180-
ICC_Profile</a> created from the ICC profile field data
177+
<li>Create an {@link java.awt.color.ICC_ColorSpace ICC_ColorSpace} from an
178+
{@link java.awt.color.ICC_Profile ICC_Profile} created from the ICC profile field data
181179
using <code>ICC_Profile.getInstance(byte[])</code>.</li>
182180
<li>Create an <code>ImageTypeSpecifier</code> from the new color
183181
space using one of its factory methods which accepts an
184182
<code>ICC_ColorSpace</code>.
185-
<li>Create a compatible <a href="../../ImageReadParam.html">ImageReadParam</a>
183+
<li>Create a compatible {@link javax.imageio.ImageReadParam ImageReadParam}
186184
and set the <code>ImageTypeSpecifier</code> using
187185
<code>ImageReadParam.setDestinationType</code>.</li>
188186
<li>Pass the parameter object to the appropriate <code>read</code> method.</li>
@@ -206,7 +204,7 @@ <h3><a id="MetadataIssuesRead">Metadata Issues</a></h3>
206204
metadata. The reader is informed to disregard all metadata as usual via the
207205
<code>ignoreMetadata</code> parameter of
208206
<code>ImageReader.setInput(Object,boolean,boolean)</code>. It is
209-
informed of which <a href="../../plugins/tiff/TIFFTag.html">TIFFTag</a>s to
207+
informed of which {@link javax.imageio.plugins.tiff.TIFFTag TIFFTag}s to
210208
recognize or not to recognize via
211209
<code>TIFFImageReadParam.addAllowedTagSet(TIFFTagSet)</code> and
212210
<code>TIFFImageReadParam.removeAllowedTagSet(TIFFTagSet)</code>.
@@ -221,7 +219,7 @@ <h3><a id="MetadataIssuesRead">Metadata Issues</a></h3>
221219
<code>TIFFImageReadParam.setReadUnknownTags(boolean)</code> has been
222220
invoked with parameter <code>true</code>.
223221

224-
<p>Use of a <a href="../../plugins/tiff/TIFFDirectory.html">TIFFDirectory</a>
222+
<p>Use of a {@link javax.imageio.plugins.tiff.TIFFDirectory TIFFDirectory}
225223
object may simplify gaining access to metadata values. An instance of
226224
<code>TIFFDirectory</code> may be created from the <code>IIOMetadata</code>
227225
object returned by the TIFF reader using the
@@ -481,9 +479,9 @@ <h4><a id="ExifReadJPEG">Reading Compressed Exif Images</a></h4>
481479

482480
<h2><a id="Writing">Writing Images</a></h2>
483481

484-
TIFF images are written by a <a href="../../ImageWriter.html">ImageWriter</a> which may be
482+
TIFF images are written by a {@link javax.imageio.ImageWriter ImageWriter} which may be
485483
controlled by its public interface as well as via a supplied
486-
<a href="../../ImageWriteParam.html">ImageWriteParam</a>. For an <code>ImageWriteParam</code> returned
484+
{@link javax.imageio.ImageWriteParam ImageWriteParam}. For an <code>ImageWriteParam</code> returned
487485
by the <code>getDefaultWriteParam()</code> method of the TIFF <code>ImageWriter</code>,
488486
the <code>canWriteTiles()</code> and <code>canWriteCompressed()</code> methods
489487
will return <code>true</code>; the <code>canOffsetTiles()</code> and
@@ -631,9 +629,9 @@ <h3><a id="ICCProfilesWrite">ICC Profiles</a></h3>
631629
An <code>ICC Profile</code> field will be written if either:
632630
<ul>
633631
<li>one is present in the native image metadata
634-
<a href="../IIOMetadata.html">IIOMetadata</a> instance supplied to the writer,
632+
{@link javax.imageio.metadata.IIOMetadata IIOMetadata} instance supplied to the writer,
635633
or</li>
636-
<li>the <a href="../../../../java/awt/color/ColorSpace.html">ColorSpace</a>
634+
<li>the {@link java.awt.color.ColorSpace ColorSpace}
637635
of the destination <code>ImageTypeSpecifier</code> is an instance of
638636
<code>ICC_ColorSpace</code> which is not one of the standard
639637
color spaces defined by the <code>CS_*</code> constants in the
@@ -748,7 +746,7 @@ <h3><a id="MetadataIssuesWrite">Metadata Issues</a></h3>
748746
<p>Setting up the image metadata to write to a TIFF stream may be simplified
749747
by using the <code>TIFFDirectory</code> class
750748
which represents a TIFF IFD. A field in a TIFF IFD is represented by an
751-
instance of <a href="../../plugins/tiff/TIFFField.html">TIFFField</a>. For each
749+
instance of {@link javax.imageio.plugins.tiff.TIFFField TIFFField}. For each
752750
field to be written a <code>TIFFField</code> may be added to the
753751
<code>TIFFDirectory</code> and the latter converted to an
754752
<code>IIOMetadata</code> object by invoking

‎src/java.desktop/share/classes/javax/print/DocFlavor.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2020, 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
@@ -156,9 +156,9 @@
156156
* the primary IANA name but is guaranteed to be understood by this VM. For
157157
* common flavors, the pre-defined *HOST {@code DocFlavors} may be used.
158158
* <p>
159-
* See <a href="../../java/lang/package-summary.html#charenc">character
160-
* encodings</a> for more information on the character encodings supported on
161-
* the Java platform.
159+
* See <a href="../../../java.base/java/lang/package-summary.html#charenc">
160+
* character encodings</a> for more information on the character encodings
161+
* supported on the Java platform.
162162
*
163163
* <hr>
164164
* <h2>Recommended DocFlavors</h2>

0 commit comments

Comments
 (0)
Please sign in to comment.