/[classpath]/classpath/java/lang/reflect/Array.java
ViewVC logotype

Diff of /classpath/java/lang/reflect/Array.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12.2.2 by gnu_andrew, Tue Aug 2 20:12:23 2005 UTC revision 1.12.2.3 by gnu_andrew, Wed Sep 28 17:50:21 2005 UTC
# Line 104  public final class Array Line 104  public final class Array
104     * @throws NegativeArraySizeException when length is less than 0     * @throws NegativeArraySizeException when length is less than 0
105     * @throws OutOfMemoryError if memory allocation fails     * @throws OutOfMemoryError if memory allocation fails
106     */     */
107    public static Object newInstance(Class componentType, int length)    public static Object newInstance(Class<?> componentType, int length)
108    {    {
109      if (! componentType.isPrimitive())      if (! componentType.isPrimitive())
110        return createObjectArray(componentType, length);        return createObjectArray(componentType, length);
# Line 152  public final class Array Line 152  public final class Array
152     *         than 0     *         than 0
153     * @throws OutOfMemoryError if memory allocation fails     * @throws OutOfMemoryError if memory allocation fails
154     */     */
155    public static Object newInstance(Class componentType, int[] dimensions)    public static Object newInstance(Class<?> componentType, int[] dimensions)
156    {    {
157      if (dimensions.length <= 0)      if (dimensions.length <= 0)
158        throw new IllegalArgumentException ("Empty dimensions array.");        throw new IllegalArgumentException ("Empty dimensions array.");

Legend:
Removed from v.1.12.2.2  
changed lines
  Added in v.1.12.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26