MCPcopy Create free account
hub / github.com/GraxCode/zelixkiller / loadRT

Method loadRT

src/me/lpk/util/JarUtils.java:45–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 public static Map<String, ClassNode> loadRT() throws IOException {
46 Map<String, ClassNode> classes = new HashMap<String, ClassNode>();
47 JarFile jar = new JarFile(getRT());
48 Stream<JarEntry> str = jar.stream();
49 // TODO: Make ignoring these packages optional
50 str.forEach(z -> readJar(jar, z, classes, Arrays.asList("com/sun/", "com/oracle/", "jdk/", "sun/")));
51 jar.close();
52 return classes;
53 }
54
55 /**
56 * This method is less fussy about the jar integrity.

Callers 1

setupMethod · 0.95

Calls 2

getRTMethod · 0.95
readJarMethod · 0.95

Tested by

no test coverage detected