MCPcopy Create free account
hub / github.com/apache/groovy / makeArray

Method makeArray

src/test/groovy/bugs/groovy8468/FactoryImpl.java:22–25  ·  view source on GitHub ↗
(Class<T> clazz)

Source from the content-addressed store, hash-verified

20
21public class FactoryImpl implements Factory {
22 @Override @SuppressWarnings("unchecked")
23 public <T extends Face> T[] makeArray(Class<T> clazz) {
24 return (T[]) java.lang.reflect.Array.newInstance(clazz, 0);
25 }
26
27 /*public static void main(String[] args) {
28 Factory factory = new FactoryImpl();

Callers

nothing calls this directly

Calls 1

newInstanceMethod · 0.65

Tested by

no test coverage detected