()
| 1256 | */ |
| 1257 | |
| 1258 | static ClassLoader getContextClassLoader() { |
| 1259 | return AccessController.doPrivileged( |
| 1260 | new PrivilegedAction<ClassLoader>() { |
| 1261 | @Override |
| 1262 | public ClassLoader run() { |
| 1263 | ClassLoader cl = null; |
| 1264 | try { |
| 1265 | cl = Thread.currentThread().getContextClassLoader(); |
| 1266 | } catch (SecurityException ex) { |
| 1267 | } |
| 1268 | return cl; |
| 1269 | } |
| 1270 | } |
| 1271 | ); |
| 1272 | } |
| 1273 | |
| 1274 | private static InputStream getResourceAsStream(final Class<?> c, |
| 1275 | final String name) throws IOException { |
no outgoing calls
no test coverage detected