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

Method findProperties

classpath/java/util/ResourceBundle.java:30–48  ·  view source on GitHub ↗
(String name, ClassLoader loader,
                                               ResourceBundle parent)

Source from the content-addressed store, hash-verified

28 }
29
30 private static ResourceBundle findProperties(String name, ClassLoader loader,
31 ResourceBundle parent)
32 throws IOException
33 {
34 InputStream in = loader.getResourceAsStream
35 (replace('.', '/', name) + ".properties");
36 if (in != null) {
37 try {
38 ResourceBundle r = new PropertyResourceBundle(in);
39 r.name = name;
40 r.parent = parent;
41 return r;
42 } finally {
43 in.close();
44 }
45 } else {
46 return null;
47 }
48 }
49
50 private static ResourceBundle find(String name, ClassLoader loader,
51 ResourceBundle parent)

Callers 1

findMethod · 0.95

Calls 3

replaceMethod · 0.95
closeMethod · 0.95
getResourceAsStreamMethod · 0.45

Tested by

no test coverage detected