From b31e91cba52d3b6e76b80072b232b7479be2122f Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 30 Jun 2024 08:01:44 -0400 Subject: [PATCH] Javadoc --- .../commons/logging/impl/SimpleLog.java | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/impl/SimpleLog.java b/src/main/java/org/apache/commons/logging/impl/SimpleLog.java index 84102de..60044f7 100644 --- a/src/main/java/org/apache/commons/logging/impl/SimpleLog.java +++ b/src/main/java/org/apache/commons/logging/impl/SimpleLog.java @@ -66,6 +66,7 @@ import org.apache.commons.logging.LogConfigurationException; * above, this implementation also checks for a class loader resource named * {@code "simplelog.properties"}, and includes any matching definitions * from this resource (if it exists). + *

*/ public class SimpleLog implements Log, Serializable { @@ -394,11 +395,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are debug messages currently enabled? + * Tests whether debug messages are enabled. *

* This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *

*/ @Override public final boolean isDebugEnabled() { @@ -406,11 +408,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are error messages currently enabled? + * Tests whether error messages are enabled. *

* This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *

*/ @Override public final boolean isErrorEnabled() { @@ -418,11 +421,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are fatal messages currently enabled? + * Tests whether fatal messages are enabled. *

* This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *

*/ @Override public final boolean isFatalEnabled() { @@ -430,11 +434,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are info messages currently enabled? + * Tests whether info messages are enabled. *

* This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *

*/ @Override public final boolean isInfoEnabled() { @@ -442,7 +447,7 @@ public class SimpleLog implements Log, Serializable { } /** - * Tests whether the given log level currently enabled. + * Tests whether the given level is enabled. * * @param logLevel is this level enabled? * @return whether the given log level currently enabled. @@ -454,11 +459,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are trace messages currently enabled? + * Tests whether trace messages are enabled. *

* This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *

*/ @Override public final boolean isTraceEnabled() { @@ -466,11 +472,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are warn messages currently enabled? + * Tests whether warn messages are enabled. *

* This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *

*/ @Override public final boolean isWarnEnabled() { @@ -482,6 +489,7 @@ public class SimpleLog implements Log, Serializable { *

* This method assembles the message and then calls {@code write()} * to cause it to be written. + *

* * @param type One of the LOG_LEVEL_XXX constants defining the log level * @param message The message itself (typically a String) @@ -624,7 +632,7 @@ public class SimpleLog implements Log, Serializable { } /** - * Write the content of the message accumulated in the specified + * Writes the content of the message accumulated in the specified * {@code StringBuffer} to the appropriate output destination. The * default implementation writes to {@code System.err}. * @@ -636,7 +644,7 @@ public class SimpleLog implements Log, Serializable { } /** - * Write the content of the message accumulated in the specified + * Writes the content of the message accumulated in the specified * {@code StringBuffer} to the appropriate output destination. The * default implementation writes to {@code System.err}. *