You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2022/12/29 19:21:06 UTC
[logging-log4j2] 04/07: Run mvn spotless:apply
This is an automated email from the ASF dual-hosted git repository.
rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 7b4bf76ec08f44308dff30d5590e9bfce7597720
Author: raipc <an...@axibase.com>
AuthorDate: Fri Dec 9 10:51:27 2022 +0100
Run mvn spotless:apply
---
.../logging/log4j/core/config/ConfigurationSource.java | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationSource.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationSource.java
index 19aa4adc10..2562d30f4a 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationSource.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationSource.java
@@ -14,7 +14,6 @@
* See the license for the specific language governing permissions and
* limitations under the license.
*/
-
package org.apache.logging.log4j.core.config;
import java.io.ByteArrayInputStream;
@@ -34,19 +33,12 @@ import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Objects;
-import javax.net.ssl.HttpsURLConnection;
-
import org.apache.logging.log4j.core.net.UrlConnectionFactory;
-import org.apache.logging.log4j.core.net.ssl.LaxHostnameVerifier;
-import org.apache.logging.log4j.core.net.ssl.SslConfiguration;
-import org.apache.logging.log4j.core.net.ssl.SslConfigurationFactory;
-import org.apache.logging.log4j.core.util.AuthorizationProvider;
import org.apache.logging.log4j.core.util.FileUtils;
import org.apache.logging.log4j.core.util.Loader;
import org.apache.logging.log4j.core.util.Source;
import org.apache.logging.log4j.util.Constants;
import org.apache.logging.log4j.util.LoaderUtil;
-import org.apache.logging.log4j.util.PropertiesUtil;
/**
* Represents the source for the logging configuration.
@@ -209,15 +201,15 @@ public class ConfigurationSource {
private boolean isFile() {
return source == null ? false : source.getFile() != null;
}
-
+
private boolean isURL() {
return source == null ? false : source.getURI() != null;
}
-
+
private boolean isLocation() {
return source == null ? false : source.getLocation() != null;
}
-
+
/**
* Returns the configuration source URL, or {@code null} if this configuration source is based on a file or has
* neither a file nor an URL.