jvz commented on code in PR #2138:
URL: https://github.com/apache/logging-log4j2/pull/2138#discussion_r1438757238


##########
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:
   It's used for checking if we have the ability to use the permission in 
full-permission mode to see if we should just fall back to the class loader of 
this class.



-- 
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]

Reply via email to