mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8342865: Use type parameter for Class::getPrimitiveClass
Reviewed-by: darcy
This commit is contained in:
parent
9e451aa365
commit
40e07a7ea3
10 changed files with 13 additions and 22 deletions
|
@ -3278,10 +3278,10 @@ public final class Class<T> implements java.io.Serializable,
|
|||
private native ProtectionDomain getProtectionDomain0();
|
||||
|
||||
/*
|
||||
* Return the Virtual Machine's Class object for the named
|
||||
* primitive type.
|
||||
* Returns the Class object for the named primitive type. Type parameter T
|
||||
* avoids redundant casts for trusted code.
|
||||
*/
|
||||
static native Class<?> getPrimitiveClass(String name);
|
||||
static native <T> Class<T> getPrimitiveClass(String name);
|
||||
|
||||
/*
|
||||
* Check if client is allowed to access members. If access is denied,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue