You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2022/01/11 18:49:27 UTC

[logging-log4j2] 02/04: Javadocs; one format nit.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 6f27b99158633036229fe7f3e094dbf48a671504
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jan 11 13:21:52 2022 -0500

    Javadocs; one format nit.
---
 .../org/apache/log4j/config/PropertiesConfiguration.java    | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java b/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java
index ba729a0..e927e7d 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java
@@ -47,9 +47,9 @@ import org.apache.logging.log4j.core.config.status.StatusConfiguration;
 import org.apache.logging.log4j.util.LoaderUtil;
 
 /**
- * Construct a configuration based on Log4j 1 properties.
+ * Constructs a configuration based on Log4j 1 properties.
  */
-public class PropertiesConfiguration  extends Log4j1Configuration {
+public class PropertiesConfiguration extends Log4j1Configuration {
 
     private static final String CATEGORY_PREFIX = "log4j.category.";
     private static final String LOGGER_PREFIX = "log4j.logger.";
@@ -68,7 +68,8 @@ public class PropertiesConfiguration  extends Log4j1Configuration {
     private final Map<String, Appender> registry = new HashMap<>();
 
     /**
-     * Constructor.
+     * Constructs a new instance.
+     *
      * @param loggerContext The LoggerContext.
      * @param source The ConfigurationSource.
      * @param monitorIntervalSeconds The monitoring interval in seconds.
@@ -110,7 +111,7 @@ public class PropertiesConfiguration  extends Log4j1Configuration {
     }
 
     /**
-     * Read configuration from a file. <b>The existing configuration is
+     * Reads a configuration from a file. <b>The existing configuration is
      * not cleared nor reset.</b> If you require a different behavior,
      * then call {@link  LogManager#resetConfiguration
      * resetConfiguration} method before calling
@@ -327,7 +328,7 @@ public class PropertiesConfiguration  extends Log4j1Configuration {
     }
 
     /**
-     * Parse non-root elements, such non-root categories and renderers.
+     * Parses non-root elements, such non-root categories and renderers.
      */
     private void parseLoggers(Properties props) {
         Enumeration<?> enumeration = props.propertyNames();
@@ -353,7 +354,7 @@ public class PropertiesConfiguration  extends Log4j1Configuration {
     }
 
     /**
-     * Parse the additivity option for a non-root category.
+     * Parses the additivity option for a non-root category.
      */
     private boolean getAdditivityForLogger(Properties props, String loggerName) {
         boolean additivity = true;