8233956: MethodHandles.dropArguments javadoc lists parameters in wrong order
authormchung
Fri, 22 Nov 2019 11:34:22 -0800
changeset 59230 a2a921609481
parent 59229 fba8fa613d1a
child 59231 2b9027360909
8233956: MethodHandles.dropArguments javadoc lists parameters in wrong order Reviewed-by: jjg
src/java.base/share/classes/java/lang/invoke/MethodHandles.java
--- a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java	Fri Nov 22 10:38:35 2019 -0800
+++ b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java	Fri Nov 22 11:34:22 2019 -0800
@@ -4286,8 +4286,8 @@
      * {@link #dropArguments(MethodHandle,int,Class...) dropArguments}{@code (target, pos, valueTypes.toArray(new Class[0]))}
      * </pre></blockquote>
      * @param target the method handle to invoke after the arguments are dropped
+     * @param pos position of first argument to drop (zero for the leftmost)
      * @param valueTypes the type(s) of the argument(s) to drop
-     * @param pos position of first argument to drop (zero for the leftmost)
      * @return a method handle which drops arguments of the given types,
      *         before calling the original method handle
      * @throws NullPointerException if the target is null,
@@ -4366,8 +4366,8 @@
      * {@link #dropArguments(MethodHandle,int,List) dropArguments}{@code (target, pos, Arrays.asList(valueTypes))}
      * </pre></blockquote>
      * @param target the method handle to invoke after the arguments are dropped
+     * @param pos position of first argument to drop (zero for the leftmost)
      * @param valueTypes the type(s) of the argument(s) to drop
-     * @param pos position of first argument to drop (zero for the leftmost)
      * @return a method handle which drops arguments of the given types,
      *         before calling the original method handle
      * @throws NullPointerException if the target is null,