mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -95,8 +95,7 @@ public final class Long extends Number
|
|||
*
|
||||
* @since 1.1
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static final Class<Long> TYPE = (Class<Long>) Class.getPrimitiveClass("long");
|
||||
public static final Class<Long> TYPE = Class.getPrimitiveClass("long");
|
||||
|
||||
/**
|
||||
* Returns a string representation of the first argument in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue