private static Properties getProperties()

in src/main/java/org/apache/commons/logging/LogFactory.java [944:967]


    private static Properties getProperties(final URL url) {
        return AccessController.doPrivileged((PrivilegedAction<Properties>) () -> {
            // We must ensure that useCaches is set to false, as the
            // default behavior of java is to cache file handles, and
            // this "locks" files, preventing hot-redeploy on windows.
            try {
                final URLConnection connection = url.openConnection();
                connection.setUseCaches(false);
                try (InputStream stream = connection.getInputStream()) {
                    if (stream != null) {
                        final Properties props = new Properties();
                        props.load(stream);
                        return props;
                    }
                } catch (final IOException e) {
                    logDiagnostic(() -> "Unable to close stream for URL " + url);
                }
            } catch (final IOException e) {
                logDiagnostic(() -> "Unable to read URL " + url);
            }

            return null;
        });
    }