Skip to content

Commit bd09589

Browse files
committed
8356632: Fix remaining {@link/@linkplain} tags with refer to private/protected types in java.base
Reviewed-by: weijun, liach
1 parent daa8eda commit bd09589

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/java.base/share/classes/java/lang/invoke/MethodHandles.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,10 +2821,10 @@ private IllegalAccessException makeAccessException(Class<?> targetClass) {
28212821
* if and only if one of the following is true:
28222822
* <ul>
28232823
* <li>{@code targetClass} is in {@code M0} and {@code M1}
2824-
* {@linkplain Module#reads reads} {@code M0} and the type is
2824+
* {@linkplain Module#canRead(Module)} reads} {@code M0} and the type is
28252825
* in a package that is exported to at least {@code M1}.
28262826
* <li>{@code targetClass} is in {@code M1} and {@code M0}
2827-
* {@linkplain Module#reads reads} {@code M1} and the type is
2827+
* {@linkplain Module#canRead(Module)} reads} {@code M1} and the type is
28282828
* in a package that is exported to at least {@code M0}.
28292829
* <li>{@code targetClass} is in a third module {@code M2} and both {@code M0}
28302830
* and {@code M1} reads {@code M2} and the type is in a package
@@ -4890,7 +4890,7 @@ private static MethodHandle identityOrVoid(Class<?> type) {
48904890
* @param type the type of the desired method handle
48914891
* @return a constant method handle of the given type, which returns a default value of the given return type
48924892
* @throws NullPointerException if the argument is null
4893-
* @see MethodHandles#primitiveZero
4893+
* @see MethodHandles#zero(Class)
48944894
* @see MethodHandles#constant
48954895
* @since 9
48964896
*/

src/java.base/share/classes/java/lang/module/ModuleDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,7 @@ public Builder uses(String service) {
20202020

20212021
/**
20222022
* Provides a service with one or more implementations. The package for
2023-
* each {@link Provides#providers provider} (or provider factory) is
2023+
* each {@link Provides#providers() provider} (or provider factory) is
20242024
* added to the module if not already added.
20252025
*
20262026
* @param p

src/java.base/share/classes/java/net/Socket.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ public void connect(SocketAddress endpoint, int timeout) throws IOException {
679679
* SocketAddress subclass not supported by this socket
680680
*
681681
* @since 1.4
682-
* @see #isBound
682+
* @see #isBound()
683683
*/
684684
public void bind(SocketAddress bindpoint) throws IOException {
685685
int s = state;
@@ -1612,7 +1612,7 @@ private void closeSuppressingExceptions(Throwable parentException) {
16121612
* as well.
16131613
*
16141614
* @throws IOException if an I/O error occurs when closing this socket.
1615-
* @see #isClosed
1615+
* @see #isClosed()
16161616
*/
16171617
public void close() throws IOException {
16181618
synchronized (socketLock) {
@@ -1642,7 +1642,7 @@ public void close() throws IOException {
16421642
* @see java.net.Socket#shutdownOutput()
16431643
* @see java.net.Socket#close()
16441644
* @see java.net.Socket#setSoLinger(boolean, int)
1645-
* @see #isInputShutdown
1645+
* @see #isInputShutdown()
16461646
*/
16471647
public void shutdownInput() throws IOException {
16481648
int s = state;
@@ -1672,7 +1672,7 @@ public void shutdownInput() throws IOException {
16721672
* @see java.net.Socket#shutdownInput()
16731673
* @see java.net.Socket#close()
16741674
* @see java.net.Socket#setSoLinger(boolean, int)
1675-
* @see #isOutputShutdown
1675+
* @see #isOutputShutdown()
16761676
*/
16771677
public void shutdownOutput() throws IOException {
16781678
int s = state;

src/java.base/share/classes/java/util/concurrent/ForkJoinTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@
131131
* (including the case where a task was cancelled without executing);
132132
* {@link #isCompletedNormally} is true if a task completed without
133133
* cancellation or encountering an exception; {@link #isCancelled} is
134-
* true if the task was cancelled (in which case {@link #getException}
134+
* true if the task was cancelled (in which case {@link #getException()}
135135
* returns a {@link CancellationException}); and
136136
* {@link #isCompletedAbnormally} is true if a task was either
137137
* cancelled or encountered an exception, in which case {@link
138-
* #getException} will return either the encountered exception or
138+
* #getException()} will return either the encountered exception or
139139
* {@link CancellationException}.
140140
*
141141
* <p>The ForkJoinTask class is not usually directly subclassed.

src/java.base/share/classes/javax/crypto/KEM.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,8 @@ public Encapsulator newEncapsulator(PublicKey publicKey, SecureRandom secureRand
707707
* the same key can be used to derive shared secrets in different ways.
708708
* If any extra information inside this object needs to be transmitted along
709709
* with the key encapsulation message so that the receiver is able to create
710-
* a matching decapsulator, it will be included as a byte array in the
711-
* {@link Encapsulated#params} field inside the encapsulation output.
710+
* a matching decapsulator, it will be included as a byte array returned by the
711+
* {@link Encapsulated#params()} method within the encapsulation output.
712712
* In this case, the security provider should provide an
713713
* {@code AlgorithmParameters} implementation using the same algorithm name
714714
* as the KEM. The receiver can initiate such an {@code AlgorithmParameters}

0 commit comments

Comments
 (0)