private static Enumeration getResources()

in src/main/java/org/apache/commons/logging/LogFactory.java [984:1001]


    private static Enumeration<URL> getResources(final ClassLoader loader, final String name) {
        return AccessController.doPrivileged((PrivilegedAction<Enumeration<URL>>) () -> {
            try {
                if (loader != null) {
                    return loader.getResources(name);
                }
                return ClassLoader.getSystemResources(name);
            } catch (final IOException e) {
                logDiagnostic(() -> "Exception while trying to find configuration file " + name + ":" + e.getMessage());
                return null;
            } catch (final NoSuchMethodError e) {
                // we must be running on a 1.1 JVM which doesn't support
                // ClassLoader.getSystemResources; just return null in
                // this case.
                return null;
            }
        });
    }