From e1745bc98180e0d49ed4dd3116a43c90645a1a09 Mon Sep 17 00:00:00 2001 From: Pavel Rappo Date: Fri, 3 Mar 2023 09:12:14 +0000 Subject: [PATCH] 8303473: Add implied {@code} in java.lang.invoke.MethodHandles Reviewed-by: jjg, lancea, mchung --- .../share/classes/java/lang/invoke/MethodHandles.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java index 7199dd59476..68362980a04 100644 --- a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java +++ b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java @@ -2333,7 +2333,7 @@ public class MethodHandles { * before calling this factory method. * * @throws IllegalArgumentException if {@code bytes} is not a class or interface or - * {@bytes} denotes a class in a different package than the lookup class + * {@code bytes} denotes a class in a different package than the lookup class */ private ClassDefiner makeClassDefiner(byte[] bytes) { ClassFile cf = ClassFile.newInstance(bytes, lookupClass().getPackageName()); @@ -2351,7 +2351,7 @@ public class MethodHandles { * @return ClassDefiner that defines a hidden class of the given bytes. * * @throws IllegalArgumentException if {@code bytes} is not a class or interface or - * {@bytes} denotes a class in a different package than the lookup class + * {@code bytes} denotes a class in a different package than the lookup class */ ClassDefiner makeHiddenClassDefiner(byte[] bytes) { ClassFile cf = ClassFile.newInstance(bytes, lookupClass().getPackageName()); @@ -2372,7 +2372,7 @@ public class MethodHandles { * @return ClassDefiner that defines a hidden class of the given bytes and options * * @throws IllegalArgumentException if {@code bytes} is not a class or interface or - * {@bytes} denotes a class in a different package than the lookup class + * {@code bytes} denotes a class in a different package than the lookup class */ ClassDefiner makeHiddenClassDefiner(byte[] bytes, Set options, @@ -5182,7 +5182,7 @@ assert((int)twice.invokeExact(21) == 42); * @return a method handle which inserts an additional argument, * before calling the original method handle * @throws NullPointerException if the target or the {@code values} array is null - * @throws IllegalArgumentException if (@code pos) is less than {@code 0} or greater than + * @throws IllegalArgumentException if {@code pos} is less than {@code 0} or greater than * {@code N - L} where {@code N} is the arity of the target method handle and {@code L} * is the length of the values array. * @throws ClassCastException if an argument does not match the corresponding bound parameter