8310838: Correct range notations in MethodTypeDesc specification

Reviewed-by: mchung
This commit is contained in:
Chen Liang 2023-06-26 22:07:35 +00:00 committed by Mandy Chung
parent 7c6a28fd0c
commit a197ee797b

View File

@ -119,7 +119,7 @@ public sealed interface MethodTypeDesc
* @param index the index of the parameter to retrieve
* @return a {@link ClassDesc} describing the desired parameter type
* @throws IndexOutOfBoundsException if the index is outside the half-open
* range {[0, parameterCount())}
* range {@code [0, parameterCount())}
*/
ClassDesc parameterType(int index);
@ -156,7 +156,7 @@ public sealed interface MethodTypeDesc
* @return a {@linkplain MethodTypeDesc} describing the desired method type
* @throws NullPointerException if any argument is {@code null}
* @throws IndexOutOfBoundsException if the index is outside the half-open
* range {[0, parameterCount)}
* range {@code [0, parameterCount)}
*/
MethodTypeDesc changeParameterType(int index, ClassDesc paramType);
@ -183,7 +183,7 @@ public sealed interface MethodTypeDesc
* @return a {@linkplain MethodTypeDesc} describing the desired method type
* @throws NullPointerException if any argument or its contents are {@code null}
* @throws IndexOutOfBoundsException if {@code pos} is outside the closed
* range {[0, parameterCount]}
* range {@code [0, parameterCount]}
* @throws IllegalArgumentException if any element of {@code paramTypes}
* is a {@link ClassDesc} for {@code void}
*/