MCPcopy Create free account
hub / github.com/ReadyTalk/avian / getResource

Method getResource

classpath/avian/SystemClassLoader.java:97–109  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

95 // get the behavior we want. This implementation is the same as
96 // that of Avian's java.lang.ClassLoader.getResource.
97 public URL getResource(String path) {
98 URL url = null;
99 ClassLoader parent = getParent();
100 if (parent != null) {
101 url = parent.getResource(path);
102 }
103
104 if (url == null) {
105 url = findResource(path);
106 }
107
108 return url;
109 }
110
111 // As above, we override this method to avoid inappropriate behavior
112 // in OpenJDK's java.lang.ClassLoader.getResources.

Callers

nothing calls this directly

Calls 3

getResourceMethod · 0.95
findResourceMethod · 0.95
getParentMethod · 0.45

Tested by

no test coverage detected