From 69bc0887741a7dd7eda234f5b3252c3c5e46d87e Mon Sep 17 00:00:00 2001 From: Nizar Benalla Date: Tue, 5 Nov 2024 21:43:11 +0000 Subject: [PATCH] 8343071: Broken anchors to restricted method page and some redundant ids 8332747: Broken links in StructuredTaskScope Reviewed-by: mcimadamore, iris --- src/java.base/share/classes/java/lang/Class.java | 2 +- src/java.base/share/classes/java/lang/Module.java | 2 +- .../share/classes/java/lang/foreign/MemorySegment.java | 2 +- .../classes/java/util/concurrent/StructuredTaskScope.java | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/java.base/share/classes/java/lang/Class.java b/src/java.base/share/classes/java/lang/Class.java index 93a675c83a4..2edf0a9169e 100644 --- a/src/java.base/share/classes/java/lang/Class.java +++ b/src/java.base/share/classes/java/lang/Class.java @@ -151,7 +151,7 @@ import sun.reflect.misc.ReflectUtil; *

Some methods of class {@code Class} expose whether the declaration of * a class or interface in Java source code was enclosed within * another declaration. Other methods describe how a class or interface - * is situated in a {@index "nest"}. A nest is a set of + * is situated in a {@index "nest"}. A nest is a set of * classes and interfaces, in the same run-time package, that * allow mutual access to their {@code private} members. * The classes and interfaces are known as {@index "nestmates"} diff --git a/src/java.base/share/classes/java/lang/Module.java b/src/java.base/share/classes/java/lang/Module.java index e4cf4a3a6c3..4d4593b3197 100644 --- a/src/java.base/share/classes/java/lang/Module.java +++ b/src/java.base/share/classes/java/lang/Module.java @@ -263,7 +263,7 @@ public final class Module implements AnnotatedElement { /** * Returns {@code true} if this module can access - * restricted methods. + * restricted methods. * * @return {@code true} if this module can access restricted methods. * @since 22 diff --git a/src/java.base/share/classes/java/lang/foreign/MemorySegment.java b/src/java.base/share/classes/java/lang/foreign/MemorySegment.java index 74658a5bbf6..7ecbe2504f3 100644 --- a/src/java.base/share/classes/java/lang/foreign/MemorySegment.java +++ b/src/java.base/share/classes/java/lang/foreign/MemorySegment.java @@ -501,7 +501,7 @@ import jdk.internal.vm.annotation.ForceInline; * All the methods that can be used to manipulate zero-length memory segments * ({@link #reinterpret(long)}, {@link #reinterpret(Arena, Consumer)}, {@link #reinterpret(long, Arena, Consumer)} and * {@link AddressLayout#withTargetLayout(MemoryLayout)}) are - * restricted methods, and should + * restricted methods, and should * be used with caution: assigning a segment incorrect spatial and/or temporal bounds * could result in a VM crash when attempting to access the memory segment. * diff --git a/src/java.base/share/classes/java/util/concurrent/StructuredTaskScope.java b/src/java.base/share/classes/java/util/concurrent/StructuredTaskScope.java index 94dac686943..17448e9bf3d 100644 --- a/src/java.base/share/classes/java/util/concurrent/StructuredTaskScope.java +++ b/src/java.base/share/classes/java/util/concurrent/StructuredTaskScope.java @@ -1007,9 +1007,9 @@ public class StructuredTaskScope implements AutoCloseable { * *

Construction captures the current thread's {@linkplain ScopedValue scoped * value} bindings for inheritance by threads started in the task scope. The - * Tree Structure section in the class description - * details how parent-child relations are established implicitly for the purpose - * of inheritance of scoped value bindings. + * {@linkplain StructuredTaskScope##TreeStructure Tree Structure} section + * in the class description details how parent-child relations are established + * implicitly for the purpose of inheritance of scoped value bindings. * * @param name the name of the task scope, can be null * @param factory the thread factory @@ -1187,7 +1187,7 @@ public class StructuredTaskScope implements AutoCloseable { * *

Construction captures the current thread's {@linkplain ScopedValue scoped * value} bindings for inheritance by threads started in the task scope. The - * Tree Structure section in the class description + * {@linkplain StructuredTaskScope##TreeStructure Tree Structure} section in the class description * details how parent-child relations are established implicitly for the purpose * of inheritance of scoped value bindings. *