MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / newInstance

Method newInstance

vm/JavaAPI/src/java/lang/reflect/Array.java:30–37  ·  view source on GitHub ↗
(Class<?> componentType,
                 int[] dimensions)

Source from the content-addressed store, hash-verified

28 */
29public class Array {
30 public static Object newInstance(Class<?> componentType,
31 int[] dimensions) {
32 if (dimensions.length != 1) {
33 throw new IllegalArgumentException("Only 1-dimensional arrays currently supported by Array.newInstance()");
34 }
35 return newInstanceImpl(componentType, dimensions[0]);
36
37 }
38
39 public static Object newInstance(Class<?> componentType,
40 int length) {

Callers 10

runtimeTypeMethod · 0.95
arrayClassMethod · 0.95
evalMethod · 0.95
arrayClassMethod · 0.95
allocateArrayMethod · 0.95
mainMethod · 0.95
copyOfMethod · 0.95
copyOfRangeMethod · 0.95
parseElementMethod · 0.95

Calls 1

newInstanceImplMethod · 0.95

Tested by 2

mainMethod · 0.76