Skip to content

Commit 69bc088

Browse files
committedNov 5, 2024
8343071: Broken anchors to restricted method page and some redundant ids
8332747: Broken links in StructuredTaskScope Reviewed-by: mcimadamore, iris
1 parent d4d9831 commit 69bc088

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed
 

‎src/java.base/share/classes/java/lang/Class.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
* <p> Some methods of class {@code Class} expose whether the declaration of
152152
* a class or interface in Java source code was <em>enclosed</em> within
153153
* another declaration. Other methods describe how a class or interface
154-
* is situated in a <dfn>{@index "nest"}</dfn>. A <a id="nest">nest</a> is a set of
154+
* is situated in a <dfn>{@index "nest"}</dfn>. A nest is a set of
155155
* classes and interfaces, in the same run-time package, that
156156
* allow mutual access to their {@code private} members.
157157
* The classes and interfaces are known as <dfn>{@index "nestmates"}</dfn>

‎src/java.base/share/classes/java/lang/Module.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Module implAddEnableNativeAccess() {
263263

264264
/**
265265
* Returns {@code true} if this module can access
266-
* <a href="foreign/package-summary.html#restricted"><em>restricted</em></a> methods.
266+
* <a href="{@docRoot}/java.base/java/lang/doc-files/RestrictedMethods.html#restricted"><em>restricted</em></a> methods.
267267
*
268268
* @return {@code true} if this module can access <em>restricted</em> methods.
269269
* @since 22

‎src/java.base/share/classes/java/lang/foreign/MemorySegment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@
501501
* All the methods that can be used to manipulate zero-length memory segments
502502
* ({@link #reinterpret(long)}, {@link #reinterpret(Arena, Consumer)}, {@link #reinterpret(long, Arena, Consumer)} and
503503
* {@link AddressLayout#withTargetLayout(MemoryLayout)}) are
504-
* <a href="package-summary.html#restricted"><em>restricted</em></a> methods, and should
504+
* <a href="{@docRoot}/java.base/java/lang/doc-files/RestrictedMethods.html#restricted"><em>restricted</em></a> methods, and should
505505
* be used with caution: assigning a segment incorrect spatial and/or temporal bounds
506506
* could result in a VM crash when attempting to access the memory segment.
507507
*

‎src/java.base/share/classes/java/util/concurrent/StructuredTaskScope.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1007,9 +1007,9 @@ public static final class ShutdownOnSuccess<T> extends StructuredTaskScope<T> {
10071007
*
10081008
* <p> Construction captures the current thread's {@linkplain ScopedValue scoped
10091009
* value} bindings for inheritance by threads started in the task scope. The
1010-
* <a href="#TreeStructure">Tree Structure</a> section in the class description
1011-
* details how parent-child relations are established implicitly for the purpose
1012-
* of inheritance of scoped value bindings.
1010+
* {@linkplain StructuredTaskScope##TreeStructure Tree Structure} section
1011+
* in the class description details how parent-child relations are established
1012+
* implicitly for the purpose of inheritance of scoped value bindings.
10131013
*
10141014
* @param name the name of the task scope, can be null
10151015
* @param factory the thread factory
@@ -1187,7 +1187,7 @@ public static final class ShutdownOnFailure extends StructuredTaskScope<Object>
11871187
*
11881188
* <p> Construction captures the current thread's {@linkplain ScopedValue scoped
11891189
* value} bindings for inheritance by threads started in the task scope. The
1190-
* <a href="#TreeStructure">Tree Structure</a> section in the class description
1190+
* {@linkplain StructuredTaskScope##TreeStructure Tree Structure} section in the class description
11911191
* details how parent-child relations are established implicitly for the purpose
11921192
* of inheritance of scoped value bindings.
11931193
*

0 commit comments

Comments
 (0)
Please sign in to comment.