MCPcopy Create free account
hub / github.com/antlr/codebuff / initialize

Method initialize

output/java_guava/1.4.17/Reflection.java:73–81  ·  view source on GitHub ↗

Ensures that the given classes are initialized, as described in JLS Section 12.4.2 . WARNING: Normally it's a smell if a class needs to be explicitly initialized, because static state hurts system maintaina

(Class<?>... classes)

Source from the content-addressed store, hash-verified

71
72
73 public static void initialize(Class<?>... classes) {
74 for (Class<?> clazz : classes) {
75 try {
76 Class.forName(clazz.getName(), true, clazz.getClassLoader());
77 } catch (ClassNotFoundException e) {
78 throw new AssertionError(e);
79 }
80 }
81 }
82
83 /**
84 * Returns a proxy instance that implements {@code interfaceType} by dispatching method

Callers 4

hashCodeMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected