Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
parent
c648dedbde
commit
97b8365caf
17478 changed files with 606493 additions and 100744 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue