8384631: SwitchBoostraps.typeSwitch method Javadoc still mentions target of a reference type

Reviewed-by: liach
This commit is contained in:
Dusan Balek 2026-05-21 06:45:18 +00:00 committed by Chen Liang
parent e50c413bb7
commit 50deb1712c

View File

@ -180,7 +180,7 @@ public final class SwitchBootstraps {
*
* @throws NullPointerException if any argument is {@code null}, unless noted otherwise
* @throws IllegalArgumentException if any element in the labels array is null
* @throws IllegalArgumentException if the invocation type is not a method type of first parameter of a reference type,
* @throws IllegalArgumentException if the invocation type is not a method type of first parameter of a target type,
* second parameter of type {@code int} and with {@code int} as its return type
* @throws IllegalArgumentException if {@code labels} contains an element that is not of type {@code String},
* {@code Integer}, {@code Long}, {@code Float}, {@code Double}, {@code Boolean},