1
0

Remove unused private method

This commit is contained in:
Gary Gregory
2023-11-19 16:08:36 -05:00
parent dd2c1599b2
commit ab478d1a0f

View File

@@ -1009,21 +1009,6 @@ public abstract class LogFactory {
}); });
} }
/**
* Applets may run in an environment where accessing resources of a loader is
* a secure operation, but where the commons-logging library has explicitly
* been granted permission for that operation. In this case, we need to
* run the operation using an AccessController.
*/
private static InputStream getResourceAsStream(final ClassLoader loader, final String name) {
return AccessController.doPrivileged((PrivilegedAction<InputStream>) () -> {
if (loader != null) {
return loader.getResourceAsStream(name);
}
return ClassLoader.getSystemResourceAsStream(name);
});
}
/** /**
* Given a file name, return an enumeration of URLs pointing to * Given a file name, return an enumeration of URLs pointing to
* all the occurrences of that file name in the classpath. * all the occurrences of that file name in the classpath.