ppkarwasz commented on code in PR #2138:
URL: https://github.com/apache/logging-log4j2/pull/2138#discussion_r1438753507
##########
log4j-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java:
##########
@@ -50,39 +50,31 @@ public final class LoaderUtil {
// wants to use PropertiesUtil, but then PropertiesUtil wants to use
LoaderUtil.
private static Boolean ignoreTCCL;
- private static final RuntimePermission GET_CLASS_LOADER = new
RuntimePermission("getClassLoader");
- private static final boolean GET_CLASS_LOADER_DISABLED;
-
- private static final PrivilegedAction<ClassLoader> TCCL_GETTER = new
ThreadContextClassLoaderGetter();
-
- static {
- if (System.getSecurityManager() != null) {
- boolean getClassLoaderDisabled;
+ static final RuntimePermission GET_CLASS_LOADER = new
RuntimePermission("getClassLoader");
Review Comment:
Unless I am mistaken, this is no longer necessary.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]