summaryrefslogtreecommitdiff
path: root/java/lang/reflect/Array.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/lang/reflect/Array.java')
-rw-r--r--java/lang/reflect/Array.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/lang/reflect/Array.java b/java/lang/reflect/Array.java
index ae65ffbf2..373bf204c 100644
--- a/java/lang/reflect/Array.java
+++ b/java/lang/reflect/Array.java
@@ -95,7 +95,7 @@ public final class Array
* @throws NegativeArraySizeException when length is less than 0
* @throws OutOfMemoryError if memory allocation fails
*/
- public static Object newInstance(Class componentType, int length)
+ public static Object newInstance(Class<?> componentType, int length)
{
if (! componentType.isPrimitive())
return VMArray.createObjectArray(componentType, length);
@@ -143,7 +143,7 @@ public final class Array
* than 0
* @throws OutOfMemoryError if memory allocation fails
*/
- public static Object newInstance(Class componentType, int[] dimensions)
+ public static Object newInstance(Class<?> componentType, int[] dimensions)
{
if (dimensions.length <= 0)
throw new IllegalArgumentException ("Empty dimensions array.");