mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8223914: specification of j.l.c.MethodTypeDesc::of should document better the exceptions thrown
Reviewed-by: rriggs
This commit is contained in:
parent
23b2871246
commit
ff2fa1e422
2 changed files with 21 additions and 1 deletions
|
@ -65,7 +65,9 @@ public interface MethodTypeDesc
|
|||
* @param returnDesc a {@linkplain ClassDesc} describing the return type
|
||||
* @param paramDescs {@linkplain ClassDesc}s describing the argument types
|
||||
* @return a {@linkplain MethodTypeDesc} describing the desired method type
|
||||
* @throws NullPointerException if any argument is {@code null}
|
||||
* @throws NullPointerException if any argument or its contents are {@code null}
|
||||
* @throws IllegalArgumentException if any element of {@code paramDescs} is a
|
||||
* {@link ClassDesc} for {@code void}
|
||||
*/
|
||||
static MethodTypeDesc of(ClassDesc returnDesc, ClassDesc... paramDescs) {
|
||||
return new MethodTypeDescImpl(returnDesc, paramDescs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue