You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/11/19 21:36:27 UTC
(commons-logging) 05/14: Remove unused private method
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-logging.git
commit ab478d1a0feed49674bb7f08e25ffe39389c1b8a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 19 16:08:36 2023 -0500
Remove unused private method
---
src/main/java/org/apache/commons/logging/LogFactory.java | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/src/main/java/org/apache/commons/logging/LogFactory.java b/src/main/java/org/apache/commons/logging/LogFactory.java
index 1acef03..42ae752 100644
--- a/src/main/java/org/apache/commons/logging/LogFactory.java
+++ b/src/main/java/org/apache/commons/logging/LogFactory.java
@@ -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
* all the occurrences of that file name in the classpath.