equal
deleted
inserted
replaced
174 * class (never null), or null if none can be found. |
174 * class (never null), or null if none can be found. |
175 */ |
175 */ |
176 InputStream getResourceAsStream(Class<?> c, String name) { |
176 InputStream getResourceAsStream(Class<?> c, String name) { |
177 PrivilegedAction<InputStream> act = () -> { |
177 PrivilegedAction<InputStream> act = () -> { |
178 try { |
178 try { |
179 java.lang.reflect.Module m = c.getModule(); |
179 Module m = c.getModule(); |
180 return c.getModule().getResourceAsStream(resolveName(c,name)); |
180 return c.getModule().getResourceAsStream(resolveName(c,name)); |
181 } catch (IOException x) { |
181 } catch (IOException x) { |
182 return null; |
182 return null; |
183 } |
183 } |
184 }; |
184 }; |