MCPcopy Create free account
hub / github.com/Firebasky/Java / createWithoutConstructor

Method createWithoutConstructor

java序列化链/Tools/SerializeUtil.java:63–65  ·  view source on GitHub ↗
( Class<T> classToInstantiate )

Source from the content-addressed store, hash-verified

61 }
62
63 public static <T> T createWithoutConstructor ( Class<T> classToInstantiate ) throws Exception {
64 return createWithConstructor(classToInstantiate, Object.class, new Class[0], new Object[0]);
65 }
66 public static <T> T createWithConstructor ( Class<T> classToInstantiate, Class<? super T> constructorClass, Class<?>[] consArgTypes, Object[] consArgs )
67 throws Exception {
68 Constructor<? super T> objCons = constructorClass.getDeclaredConstructor(consArgTypes);

Callers 2

mainMethod · 0.95
mainMethod · 0.95

Calls 1

createWithConstructorMethod · 0.95

Tested by

no test coverage detected