diff --git a/src/main/java/org/apache/commons/logging/Log.java b/src/main/java/org/apache/commons/logging/Log.java index be6ffa8..f2d3bb2 100644 --- a/src/main/java/org/apache/commons/logging/Log.java +++ b/src/main/java/org/apache/commons/logging/Log.java @@ -23,7 +23,7 @@ package org.apache.commons.logging; * this interface must have a constructor that takes a single String * parameter representing the "name" of this Log. *
- * The six logging levels used by Log are (in order):
+ * The six logging levels used by {@code Log} are (in order):
*
* Call this method to prevent having to perform expensive operations
- * (for example, String concatenation)
+ * (for example, {@code String} concatenation)
* when the log level is more than debug.
*
* @return true if debug is enabled in the underlying logger.
@@ -133,7 +133,7 @@ public interface Log {
* Is error logging currently enabled?
*
* Call this method to prevent having to perform expensive operations
- * (for example, String concatenation)
+ * (for example, {@code String} concatenation)
* when the log level is more than error.
*
* @return true if error is enabled in the underlying logger.
@@ -144,7 +144,7 @@ public interface Log {
* Is fatal logging currently enabled?
*
* Call this method to prevent having to perform expensive operations
- * (for example, String concatenation)
+ * (for example, {@code String} concatenation)
* when the log level is more than fatal.
*
* @return true if fatal is enabled in the underlying logger.
@@ -155,7 +155,7 @@ public interface Log {
* Is info logging currently enabled?
*
* Call this method to prevent having to perform expensive operations
- * (for example, String concatenation)
+ * (for example, {@code String} concatenation)
* when the log level is more than info.
*
* @return true if info is enabled in the underlying logger.
@@ -166,7 +166,7 @@ public interface Log {
* Is trace logging currently enabled?
*
* Call this method to prevent having to perform expensive operations
- * (for example, String concatenation)
+ * (for example, {@code String} concatenation)
* when the log level is more than trace.
*
* @return true if trace is enabled in the underlying logger.
@@ -177,7 +177,7 @@ public interface Log {
* Is warn logging currently enabled?
*
* Call this method to prevent having to perform expensive operations
- * (for example, String concatenation)
+ * (for example, {@code String} concatenation)
* when the log level is more than warn.
*
* @return true if warn is enabled in the underlying logger.
diff --git a/src/main/java/org/apache/commons/logging/LogConfigurationException.java b/src/main/java/org/apache/commons/logging/LogConfigurationException.java
index 6dca462..cfccd38 100644
--- a/src/main/java/org/apache/commons/logging/LogConfigurationException.java
+++ b/src/main/java/org/apache/commons/logging/LogConfigurationException.java
@@ -18,8 +18,8 @@
package org.apache.commons.logging;
/**
- * An exception that is thrown only if a suitable LogFactory
- * or Log instance cannot be created by the corresponding
+ * An exception that is thrown only if a suitable {@code LogFactory}
+ * or {@code Log} instance cannot be created by the corresponding
* factory methods.
*
* @version $Id$
@@ -30,7 +30,7 @@ public class LogConfigurationException extends RuntimeException {
private static final long serialVersionUID = 8486587136871052495L;
/**
- * Construct a new exception with null as its detail message.
+ * Construct a new exception with {@code null} as its detail message.
*/
public LogConfigurationException() {
}
diff --git a/src/main/java/org/apache/commons/logging/LogFactory.java b/src/main/java/org/apache/commons/logging/LogFactory.java
index da0cac7..2ffb23f 100644
--- a/src/main/java/org/apache/commons/logging/LogFactory.java
+++ b/src/main/java/org/apache/commons/logging/LogFactory.java
@@ -71,21 +71,21 @@ public abstract class LogFactory {
// ----------------------------------------------------- Manifest Constants
/**
- * The name (priority) of the key in the config file used to
+ * The name ({@code priority}) of the key in the config file used to
* specify the priority of that particular config file. The associated value
* is a floating-point number; higher values take priority over lower values.
*/
public static final String PRIORITY_KEY = "priority";
/**
- * The name (use_tccl) of the key in the config file used
+ * The name ({@code use_tccl}) of the key in the config file used
* to specify whether logging classes should be loaded via the thread
* context class loader (TCCL), or not. By default, the TCCL is used.
*/
public static final String TCCL_KEY = "use_tccl";
/**
- * The name (org.apache.commons.logging.LogFactory) of the property
+ * The name ({@code org.apache.commons.logging.LogFactory}) of the property
* used to identify the LogFactory implementation
* class name. This can be used as a system property, or as an entry in a
* configuration properties file.
@@ -93,13 +93,13 @@ public abstract class LogFactory {
public static final String FACTORY_PROPERTY = "org.apache.commons.logging.LogFactory";
/**
- * The fully qualified class name of the fallback LogFactory
+ * The fully qualified class name of the fallback {@code LogFactory}
* implementation class to use, if no other can be found.
*/
public static final String FACTORY_DEFAULT = "org.apache.commons.logging.impl.LogFactoryImpl";
/**
- * The name (commons-logging.properties) of the properties file to search for.
+ * The name ({@code commons-logging.properties}) of the properties file to search for.
*/
public static final String FACTORY_PROPERTIES = "commons-logging.properties";
@@ -111,7 +111,7 @@ public abstract class LogFactory {
"META-INF/services/org.apache.commons.logging.LogFactory";
/**
- * The name (org.apache.commons.logging.diagnostics.dest)
+ * The name ({@code org.apache.commons.logging.diagnostics.dest})
* of the property used to enable internal commons-logging
* diagnostic output, in order to get information on what logging
* implementations are being discovered, what classloaders they
@@ -144,18 +144,18 @@ public abstract class LogFactory {
/**
* Setting this system property
- * (org.apache.commons.logging.LogFactory.HashtableImpl)
- * value allows the Hashtable used to store
+ * ({@code org.apache.commons.logging.LogFactory.HashtableImpl})
+ * value allows the {@code Hashtable} used to store
* classloaders to be substituted by an alternative implementation.
*
- * Note: LogFactory will print:
+ * Note: {@code LogFactory} will print:
*
* [ERROR] LogFactory: Load of custom hashtable failed
*
* to system error and then continue using a standard Hashtable.
*
* Usage: Set this property when Java is invoked
- * and LogFactory will attempt to load a new instance
+ * and {@code LogFactory} will attempt to load a new instance
* of the given implementation class.
* For example, running the following ant scriplet:
*
@@ -166,8 +166,8 @@ public abstract class LogFactory {
* value="org.apache.commons.logging.AltHashtable"/>
* </java>
*
- * will mean that LogFactory will load an instance of
- * org.apache.commons.logging.AltHashtable.
+ * will mean that {@code LogFactory} will load an instance of
+ * {@code org.apache.commons.logging.AltHashtable}.
*
* A typical use case is to allow a custom
* Hashtable implementation using weak references to be substituted.
@@ -202,7 +202,7 @@ public abstract class LogFactory {
/**
* Return the configuration attribute with the specified name (if any),
- * or null if there is no such attribute.
+ * or {@code null} if there is no such attribute.
*
* @param name Name of the attribute to return
*/
@@ -217,29 +217,29 @@ public abstract class LogFactory {
/**
* Convenience method to derive a name from the specified class and
- * call getInstance(String) with it.
+ * call {@code getInstance(String)} with it.
*
* @param clazz Class for which a suitable Log name will be derived
- * @throws LogConfigurationException if a suitable Log
+ * @throws LogConfigurationException if a suitable {@code Log}
* instance cannot be returned
*/
public abstract Log getInstance(Class clazz)
throws LogConfigurationException;
/**
- * Construct (if necessary) and return a Log instance,
+ * Construct (if necessary) and return a {@code Log} instance,
* using the factory's current set of configuration attributes.
*
* NOTE - Depending upon the implementation of
- * the LogFactory you are using, the Log
+ * the {@code LogFactory} you are using, the {@code Log}
* instance you are returned may or may not be local to the current
* application, and may or may not be returned again on a subsequent
* call with the same name argument.
*
- * @param name Logical name of the Log instance to be
+ * @param name Logical name of the {@code Log} instance to be
* returned (the meaning of this name is only known to the underlying
* logging implementation that is being wrapped)
- * @throws LogConfigurationException if a suitable Log
+ * @throws LogConfigurationException if a suitable {@code Log}
* instance cannot be returned
*/
public abstract Log getInstance(String name)
@@ -264,11 +264,11 @@ public abstract class LogFactory {
/**
* Set the configuration attribute with the specified name. Calling
- * this with a null value is equivalent to calling
- * removeAttribute(name).
+ * this with a {@code null} value is equivalent to calling
+ * {@code removeAttribute(name)}.
*
* @param name Name of the attribute to set
- * @param value Value of the attribute to set, or null
+ * @param value Value of the attribute to set, or {@code null}
* to remove any setting for this attribute
*/
public abstract void setAttribute(String name, Object value);
@@ -276,15 +276,15 @@ public abstract class LogFactory {
// ------------------------------------------------------- Static Variables
/**
- * The previously constructed LogFactory instances, keyed by
- * the ClassLoader with which it was created.
+ * The previously constructed {@code LogFactory} instances, keyed by
+ * the {@code ClassLoader} with which it was created.
*/
protected static Hashtable factories;
/**
- * Previously constructed LogFactory instance as in the
- * factories map, but for the case where
- * getClassLoader returns null.
+ * Previously constructed {@code LogFactory} instance as in the
+ * {@code factories} map, but for the case where
+ * {@code getClassLoader} returns {@code null}.
* This can happen when:
*
factories is a Hashtable (not a HashMap),
+ * Note that {@code factories} is a Hashtable (not a HashMap),
* and hashtables don't allow null as a key.
* @deprecated since 1.1.2
*/
@@ -386,27 +386,27 @@ public abstract class LogFactory {
}
/**
- * Construct (if necessary) and return a LogFactory
+ * Construct (if necessary) and return a {@code LogFactory}
* instance, using the following ordered lookup procedure to determine
* the name of the implementation class to be loaded.
* *
org.apache.commons.logging.LogFactory system
+ * commons-logging.properties
+ * java.util.Properties format and
+ * file is in standard {@code java.util.Properties} format and
* contains the fully qualified name of the implementation class
* with the key being the system property defined above.org.apache.commons.logging.impl.LogFactoryImpl).
* NOTE - If the properties file method of identifying the
- * LogFactory implementation class is utilized, all of the
+ * {@code LogFactory} implementation class is utilized, all of the
* properties defined in this file will be set as configuration attributes
- * on the corresponding LogFactory instance.
+ * on the corresponding {@code LogFactory} instance.
*
* NOTE - In a multi-threaded environment it is possible
* that two different instances will be returned for the same
@@ -649,7 +649,7 @@ public abstract class LogFactory {
* having to care about factories.
*
* @param clazz Class from which a log name will be derived
- * @throws LogConfigurationException if a suitable Log
+ * @throws LogConfigurationException if a suitable {@code Log}
* instance cannot be returned
*/
public static Log getLog(final Class clazz) throws LogConfigurationException {
@@ -660,10 +660,10 @@ public abstract class LogFactory {
* Convenience method to return a named logger, without the application
* having to care about factories.
*
- * @param name Logical name of the Log instance to be
+ * @param name Logical name of the {@code Log} instance to be
* returned (the meaning of this name is only known to the underlying
* logging implementation that is being wrapped)
- * @throws LogConfigurationException if a suitable Log
+ * @throws LogConfigurationException if a suitable {@code Log}
* instance cannot be returned
*/
public static Log getLog(final String name) throws LogConfigurationException {
@@ -673,7 +673,7 @@ public abstract class LogFactory {
/**
* Release any internal references to previously created {@link LogFactory}
* instances that have been associated with the specified class loader
- * (if any), after calling the instance method release() on
+ * (if any), after calling the instance method {@code release()} on
* each of them.
*
* @param classLoader ClassLoader for which to release the LogFactory
@@ -702,7 +702,7 @@ public abstract class LogFactory {
/**
* Release any internal references to previously created {@link LogFactory}
- * instances, after calling the instance method release() on
+ * instances, after calling the instance method {@code release()} on
* each of them. This is useful in environments like servlet containers,
* which implement application reloading by throwing away a ClassLoader.
* Dangling references to objects in that class loader would prevent
@@ -905,7 +905,7 @@ public abstract class LogFactory {
}
/**
- * Return a new instance of the specified LogFactory
+ * Return a new instance of the specified {@code LogFactory}
* implementation class, loaded by the specified class loader.
* If that fails, try the class loader used to load this
* (abstract) LogFactory.
@@ -939,7 +939,7 @@ public abstract class LogFactory {
* long as the only LogFactory class it can find to bind to is in the
* parent classloader.
*
- * @param factoryClass Fully qualified name of the LogFactory
+ * @param factoryClass Fully qualified name of the {@code LogFactory}
* implementation class
* @param classLoader ClassLoader from which to load this class
* @param contextClassLoader is the context that this new factory will
@@ -1162,16 +1162,16 @@ public abstract class LogFactory {
}
/**
- * Determines whether the given class actually implements LogFactory.
+ * Determines whether the given class actually implements {@code LogFactory}.
* Diagnostic information is also logged.
*
* Usage: to diagnose whether a classloader conflict is the cause
* of incompatibility. The test used is whether the class is assignable from
- * the LogFactory class loaded by the class's classloader.
- * @param logFactoryClass Class which may implement LogFactory
- * @return true if the logFactoryClass does extend
- * LogFactory when that class is loaded via the same
- * classloader that loaded the logFactoryClass.
+ * the {@code LogFactory} class loaded by the class's classloader.
+ * @param logFactoryClass {@code Class} which may implement {@code LogFactory}
+ * @return true if the {@code logFactoryClass} does extend
+ * {@code LogFactory} when that class is loaded via the same
+ * classloader that loaded the {@code logFactoryClass}.
*/
private static boolean implementsLogFactory(final Class logFactoryClass) {
boolean implementsLogFactory = false;
diff --git a/src/main/java/org/apache/commons/logging/LogSource.java b/src/main/java/org/apache/commons/logging/LogSource.java
index baacded..ad6e2cb 100644
--- a/src/main/java/org/apache/commons/logging/LogSource.java
+++ b/src/main/java/org/apache/commons/logging/LogSource.java
@@ -24,27 +24,27 @@ import org.apache.commons.logging.impl.NoOpLog;
/**
* Factory for creating {@link Log} instances. Applications should call
- * the makeNewLogInstance() method to instantiate new instances
+ * the {@code makeNewLogInstance()} method to instantiate new instances
* of the configured {@link Log} implementation class.
*
- * By default, calling getInstance() will use the following
+ * By default, calling {@code getInstance()} will use the following
* algorithm:
*
org.apache.commons.logging.impl.Log4JLogger.org.apache.commons.logging.impl.Jdk14Logger.org.apache.commons.logging.impl.NoOpLog.* You can change the default behavior in one of two ways: *
org.apache.commons.logging.log to the name of the
- * org.apache.commons.logging.Log implementation class
+ * {@code org.apache.commons.logging.log} to the name of the
+ * {@code org.apache.commons.logging.Log} implementation class
* you want to use.LogSource.setLogImplementation().Log instance by class name. */
+ /** Get a {@code Log} instance by class name. */
static public Log getInstance(final String name) {
Log log = (Log) logs.get(name);
if (null == log) {
@@ -179,7 +179,7 @@ public class LogSource {
return log;
}
- /** Get a Log instance by class. */
+ /** Get a {@code Log} instance by class. */
static public Log getInstance(final Class clazz) {
return getInstance(clazz.getName());
}
diff --git a/src/main/java/org/apache/commons/logging/impl/AvalonLogger.java b/src/main/java/org/apache/commons/logging/impl/AvalonLogger.java
index 169e263..96cc84e 100644
--- a/src/main/java/org/apache/commons/logging/impl/AvalonLogger.java
+++ b/src/main/java/org/apache/commons/logging/impl/AvalonLogger.java
@@ -32,13 +32,13 @@ import org.apache.commons.logging.Log;
* particularly useful when using a property setter.
*
* AvalonLogger
- * instances created through the LogFactory mechanisms will output
- * to child loggers of this Logger.
+ * sets the ancestral Avalon logger for this class. Any {@code AvalonLogger}
+ * instances created through the {@code LogFactory} mechanisms will output
+ * to child loggers of this {@code Logger}.
*
- * Note: AvalonLogger does not implement Serializable
+ * Note: {@code AvalonLogger} does not implement Serializable
* because the constructors available for it make this impossible to achieve in all
* circumstances; there is no way to "reconnect" to an underlying Logger object on
* deserialization if one was just passed in to the constructor of the original
@@ -58,8 +58,8 @@ public class AvalonLogger implements Log {
private final transient Logger logger;
/**
- * Constructs an AvalonLogger that outputs to the given
- * Logger instance.
+ * Constructs an {@code AvalonLogger} that outputs to the given
+ * {@code Logger} instance.
*
* @param logger the Avalon logger implementation to delegate to
*/
@@ -68,7 +68,7 @@ public class AvalonLogger implements Log {
}
/**
- * Constructs an AvalonLogger that will log to a child
+ * Constructs an {@code AvalonLogger} that will log to a child
* of the Logger set by calling {@link #setDefaultLogger}.
*
* @param name the name of the avalon logger implementation to delegate to
@@ -100,7 +100,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.debug.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.debug}.
*
* @param message to log
* @param t log this cause
@@ -114,7 +114,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.debug.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.debug}.
*
* @param message to log.
* @see org.apache.commons.logging.Log#debug(Object)
@@ -127,7 +127,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.error.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.error}.
*
* @param message to log
* @param t log this cause
@@ -141,7 +141,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.error.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.error}.
*
* @param message to log
* @see org.apache.commons.logging.Log#error(Object)
@@ -154,7 +154,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.fatalError.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.fatalError}.
*
* @param message to log.
* @param t log this cause.
@@ -168,7 +168,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.fatalError.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.fatalError}.
*
* @param message to log
* @see org.apache.commons.logging.Log#fatal(Object)
@@ -181,7 +181,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.info.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.info}.
*
* @param message to log
* @param t log this cause
@@ -195,7 +195,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.info.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.info}.
*
* @param message to log
* @see org.apache.commons.logging.Log#info(Object)
@@ -208,7 +208,7 @@ public class AvalonLogger implements Log {
}
/**
- * Is logging to org.apache.avalon.framework.logger.Logger.debug enabled?
+ * Is logging to {@code org.apache.avalon.framework.logger.Logger.debug} enabled?
* @see org.apache.commons.logging.Log#isDebugEnabled()
*/
@Override
@@ -217,7 +217,7 @@ public class AvalonLogger implements Log {
}
/**
- * Is logging to org.apache.avalon.framework.logger.Logger.error enabled?
+ * Is logging to {@code org.apache.avalon.framework.logger.Logger.error} enabled?
* @see org.apache.commons.logging.Log#isErrorEnabled()
*/
@Override
@@ -226,7 +226,7 @@ public class AvalonLogger implements Log {
}
/**
- * Is logging to org.apache.avalon.framework.logger.Logger.fatalError enabled?
+ * Is logging to {@code org.apache.avalon.framework.logger.Logger.fatalError} enabled?
* @see org.apache.commons.logging.Log#isFatalEnabled()
*/
@Override
@@ -235,7 +235,7 @@ public class AvalonLogger implements Log {
}
/**
- * Is logging to org.apache.avalon.framework.logger.Logger.info enabled?
+ * Is logging to {@code org.apache.avalon.framework.logger.Logger.info} enabled?
* @see org.apache.commons.logging.Log#isInfoEnabled()
*/
@Override
@@ -244,7 +244,7 @@ public class AvalonLogger implements Log {
}
/**
- * Is logging to org.apache.avalon.framework.logger.Logger.debug enabled?
+ * Is logging to {@code org.apache.avalon.framework.logger.Logger.debug} enabled?
* @see org.apache.commons.logging.Log#isTraceEnabled()
*/
@Override
@@ -253,7 +253,7 @@ public class AvalonLogger implements Log {
}
/**
- * Is logging to org.apache.avalon.framework.logger.Logger.warn enabled?
+ * Is logging to {@code org.apache.avalon.framework.logger.Logger.warn} enabled?
* @see org.apache.commons.logging.Log#isWarnEnabled()
*/
@Override
@@ -262,7 +262,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.debug.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.debug}.
*
* @param message to log.
* @param t log this cause.
@@ -276,7 +276,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.debug.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.debug}.
*
* @param message to log
* @see org.apache.commons.logging.Log#trace(Object)
@@ -289,7 +289,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.warn.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.warn}.
*
* @param message to log
* @param t log this cause
@@ -303,7 +303,7 @@ public class AvalonLogger implements Log {
}
/**
- * Logs a message with org.apache.avalon.framework.logger.Logger.warn.
+ * Logs a message with {@code org.apache.avalon.framework.logger.Logger.warn}.
*
* @param message to log
* @see org.apache.commons.logging.Log#warn(Object)
diff --git a/src/main/java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java b/src/main/java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java
index f6b9e5b..a75d261 100644
--- a/src/main/java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java
+++ b/src/main/java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java
@@ -28,7 +28,7 @@ import java.io.StringWriter;
import org.apache.commons.logging.Log;
/**
- * Implementation of the org.apache.commons.logging.Log
+ * Implementation of the {@code org.apache.commons.logging.Log}
* interface that wraps the standard JDK logging mechanisms that are
* available in SourceForge's Lumberjack for JDKs prior to 1.4.
*
@@ -123,7 +123,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.FINE.
+ * Logs a message with {@code java.util.logging.Level.FINE}.
*
* @param message to log
* @see org.apache.commons.logging.Log#debug(Object)
@@ -134,7 +134,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.FINE.
+ * Logs a message with {@code java.util.logging.Level.FINE}.
*
* @param message to log
* @param exception log this cause
@@ -146,7 +146,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.SEVERE.
+ * Logs a message with {@code java.util.logging.Level.SEVERE}.
*
* @param message to log
* @see org.apache.commons.logging.Log#error(Object)
@@ -157,7 +157,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.SEVERE.
+ * Logs a message with {@code java.util.logging.Level.SEVERE}.
*
* @param message to log
* @param exception log this cause
@@ -169,7 +169,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.SEVERE.
+ * Logs a message with {@code java.util.logging.Level.SEVERE}.
*
* @param message to log
* @see org.apache.commons.logging.Log#fatal(Object)
@@ -180,7 +180,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.SEVERE.
+ * Logs a message with {@code java.util.logging.Level.SEVERE}.
*
* @param message to log
* @param exception log this cause
@@ -202,7 +202,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.INFO.
+ * Logs a message with {@code java.util.logging.Level.INFO}.
*
* @param message to log
* @see org.apache.commons.logging.Log#info(Object)
@@ -213,7 +213,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.INFO.
+ * Logs a message with {@code java.util.logging.Level.INFO}.
*
* @param message to log
* @param exception log this cause
@@ -273,7 +273,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.FINEST.
+ * Logs a message with {@code java.util.logging.Level.FINEST}.
*
* @param message to log
* @see org.apache.commons.logging.Log#trace(Object)
@@ -284,7 +284,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.FINEST.
+ * Logs a message with {@code java.util.logging.Level.FINEST}.
*
* @param message to log
* @param exception log this cause
@@ -296,7 +296,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.WARNING.
+ * Logs a message with {@code java.util.logging.Level.WARNING}.
*
* @param message to log
* @see org.apache.commons.logging.Log#warn(Object)
@@ -307,7 +307,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.WARNING.
+ * Logs a message with {@code java.util.logging.Level.WARNING}.
*
* @param message to log
* @param exception log this cause
diff --git a/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java b/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java
index 73cd2d1..db2fd5a 100644
--- a/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java
+++ b/src/main/java/org/apache/commons/logging/impl/Jdk14Logger.java
@@ -24,7 +24,7 @@ import java.util.logging.Logger;
import org.apache.commons.logging.Log;
/**
- * Implementation of the org.apache.commons.logging.Log
+ * Implementation of the {@code org.apache.commons.logging.Log}
* interface that wraps the standard JDK logging mechanisms that were
* introduced in the Merlin release (JDK 1.4).
*
@@ -94,7 +94,7 @@ public class Jdk14Logger implements Log, Serializable {
// --------------------------------------------------------- Public Methods
/**
- * Logs a message with java.util.logging.Level.FINE.
+ * Logs a message with {@code java.util.logging.Level.FINE}.
*
* @param message to log
* @see org.apache.commons.logging.Log#debug(Object)
@@ -105,7 +105,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.FINE.
+ * Logs a message with {@code java.util.logging.Level.FINE}.
*
* @param message to log
* @param exception log this cause
@@ -117,7 +117,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.SEVERE.
+ * Logs a message with {@code java.util.logging.Level.SEVERE}.
*
* @param message to log
* @see org.apache.commons.logging.Log#error(Object)
@@ -128,7 +128,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.SEVERE.
+ * Logs a message with {@code java.util.logging.Level.SEVERE}.
*
* @param message to log
* @param exception log this cause
@@ -140,7 +140,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.SEVERE.
+ * Logs a message with {@code java.util.logging.Level.SEVERE}.
*
* @param message to log
* @see org.apache.commons.logging.Log#fatal(Object)
@@ -151,7 +151,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.SEVERE.
+ * Logs a message with {@code java.util.logging.Level.SEVERE}.
*
* @param message to log
* @param exception log this cause
@@ -173,7 +173,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.INFO.
+ * Logs a message with {@code java.util.logging.Level.INFO}.
*
* @param message to log
* @see org.apache.commons.logging.Log#info(Object)
@@ -184,7 +184,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.INFO.
+ * Logs a message with {@code java.util.logging.Level.INFO}.
*
* @param message to log
* @param exception log this cause
@@ -244,7 +244,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.FINEST.
+ * Logs a message with {@code java.util.logging.Level.FINEST}.
*
* @param message to log
* @see org.apache.commons.logging.Log#trace(Object)
@@ -255,7 +255,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.FINEST.
+ * Logs a message with {@code java.util.logging.Level.FINEST}.
*
* @param message to log
* @param exception log this cause
@@ -267,7 +267,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.WARNING.
+ * Logs a message with {@code java.util.logging.Level.WARNING}.
*
* @param message to log
* @see org.apache.commons.logging.Log#warn(Object)
@@ -278,7 +278,7 @@ public class Jdk14Logger implements Log, Serializable {
}
/**
- * Logs a message with java.util.logging.Level.WARNING.
+ * Logs a message with {@code java.util.logging.Level.WARNING}.
*
* @param message to log
* @param exception log this cause
diff --git a/src/main/java/org/apache/commons/logging/impl/Log4JLogger.java b/src/main/java/org/apache/commons/logging/impl/Log4JLogger.java
index 485fb07..68028e4 100644
--- a/src/main/java/org/apache/commons/logging/impl/Log4JLogger.java
+++ b/src/main/java/org/apache/commons/logging/impl/Log4JLogger.java
@@ -121,9 +121,9 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.TRACE.
- * When using a log4j version that does not support the TRACE
- * level, the message will be logged at the DEBUG level.
+ * Logs a message with {@code org.apache.log4j.Priority.TRACE}.
+ * When using a log4j version that does not support the {@code TRACE}
+ * level, the message will be logged at the {@code DEBUG} level.
*
* @param message to log
* @see org.apache.commons.logging.Log#trace(Object)
@@ -134,9 +134,9 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.TRACE.
- * When using a log4j version that does not support the TRACE
- * level, the message will be logged at the DEBUG level.
+ * Logs a message with {@code org.apache.log4j.Priority.TRACE}.
+ * When using a log4j version that does not support the {@code TRACE}
+ * level, the message will be logged at the {@code DEBUG} level.
*
* @param message to log
* @param t log this cause
@@ -148,7 +148,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.DEBUG.
+ * Logs a message with {@code org.apache.log4j.Priority.DEBUG}.
*
* @param message to log
* @see org.apache.commons.logging.Log#debug(Object)
@@ -159,7 +159,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.DEBUG.
+ * Logs a message with {@code org.apache.log4j.Priority.DEBUG}.
*
* @param message to log
* @param t log this cause
@@ -171,7 +171,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.INFO.
+ * Logs a message with {@code org.apache.log4j.Priority.INFO}.
*
* @param message to log
* @see org.apache.commons.logging.Log#info(Object)
@@ -182,7 +182,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.INFO.
+ * Logs a message with {@code org.apache.log4j.Priority.INFO}.
*
* @param message to log
* @param t log this cause
@@ -194,7 +194,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.WARN.
+ * Logs a message with {@code org.apache.log4j.Priority.WARN}.
*
* @param message to log
* @see org.apache.commons.logging.Log#warn(Object)
@@ -205,7 +205,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.WARN.
+ * Logs a message with {@code org.apache.log4j.Priority.WARN}.
*
* @param message to log
* @param t log this cause
@@ -217,7 +217,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.ERROR.
+ * Logs a message with {@code org.apache.log4j.Priority.ERROR}.
*
* @param message to log
* @see org.apache.commons.logging.Log#error(Object)
@@ -228,7 +228,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.ERROR.
+ * Logs a message with {@code org.apache.log4j.Priority.ERROR}.
*
* @param message to log
* @param t log this cause
@@ -240,7 +240,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.FATAL.
+ * Logs a message with {@code org.apache.log4j.Priority.FATAL}.
*
* @param message to log
* @see org.apache.commons.logging.Log#fatal(Object)
@@ -251,7 +251,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log4j.Priority.FATAL.
+ * Logs a message with {@code org.apache.log4j.Priority.FATAL}.
*
* @param message to log
* @param t log this cause
@@ -279,7 +279,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Check whether the Log4j Logger used is enabled for DEBUG priority.
+ * Check whether the Log4j Logger used is enabled for {@code DEBUG} priority.
*/
@Override
public boolean isDebugEnabled() {
@@ -287,7 +287,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Check whether the Log4j Logger used is enabled for ERROR priority.
+ * Check whether the Log4j Logger used is enabled for {@code ERROR} priority.
*/
@Override
public boolean isErrorEnabled() {
@@ -295,7 +295,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Check whether the Log4j Logger used is enabled for FATAL priority.
+ * Check whether the Log4j Logger used is enabled for {@code FATAL} priority.
*/
@Override
public boolean isFatalEnabled() {
@@ -303,7 +303,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Check whether the Log4j Logger used is enabled for INFO priority.
+ * Check whether the Log4j Logger used is enabled for {@code INFO} priority.
*/
@Override
public boolean isInfoEnabled() {
@@ -311,9 +311,9 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Check whether the Log4j Logger used is enabled for TRACE priority.
+ * Check whether the Log4j Logger used is enabled for {@code TRACE} priority.
* When using a log4j version that does not support the TRACE level, this call
- * will report whether DEBUG is enabled or not.
+ * will report whether {@code DEBUG} is enabled or not.
*/
@Override
public boolean isTraceEnabled() {
@@ -321,7 +321,7 @@ public class Log4JLogger implements Log, Serializable {
}
/**
- * Check whether the Log4j Logger used is enabled for WARN priority.
+ * Check whether the Log4j Logger used is enabled for {@code WARN} priority.
*/
@Override
public boolean isWarnEnabled() {
diff --git a/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java b/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java
index 54ce37b..d4157ea 100644
--- a/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java
+++ b/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java
@@ -37,16 +37,16 @@ import org.apache.commons.logging.LogFactory;
* class to instantiate a wrapper for:
*
org.apache.commons.logging.Log to identify the
+ * {@code org.apache.commons.logging.Log} to identify the
* requested implementation class.org.apache.commons.logging.Log system property
+ * org.apache.commons.logging.impl.Log4JLogger.org.apache.commons.logging.impl.Jdk14Logger.org.apache.commons.logging.impl.SimpleLog.* If the selected {@link Log} implementation class has a @@ -55,9 +55,9 @@ import org.apache.commons.logging.LogFactory; * to identify the associated factory. This makes factory configuration * attributes available to the Log instance, if it so desires. *
- * This factory will remember previously created Log instances
+ * This factory will remember previously created {@code Log} instances
* for the same name, and will return them on repeated requests to the
- * getInstance() method.
+ * {@code getInstance()} method.
*
* @version $Id$
*/
@@ -97,7 +97,7 @@ public class LogFactoryImpl extends LogFactory {
// ----------------------------------------------------- Manifest Constants
/**
- * The name (org.apache.commons.logging.Log) of the system
+ * The name ({@code org.apache.commons.logging.Log}) of the system
* property identifying our {@link Log} implementation class.
*/
public static final String LOG_PROPERTY = "org.apache.commons.logging.Log";
@@ -109,7 +109,7 @@ public class LogFactoryImpl extends LogFactory {
protected static final String LOG_PROPERTY_OLD = "org.apache.commons.logging.log";
/**
- * The name (org.apache.commons.logging.Log.allowFlawedContext)
+ * The name ({@code org.apache.commons.logging.Log.allowFlawedContext})
* of the system property which can be set true/false to
* determine system behavior when a bad context-classloader is encountered.
* When set to false, a LogConfigurationException is thrown if
@@ -124,7 +124,7 @@ public class LogFactoryImpl extends LogFactory {
"org.apache.commons.logging.Log.allowFlawedContext";
/**
- * The name (org.apache.commons.logging.Log.allowFlawedDiscovery)
+ * The name ({@code org.apache.commons.logging.Log.allowFlawedDiscovery})
* of the system property which can be set true/false to
* determine system behavior when a bad logging adapter class is
* encountered during logging discovery. When set to false, an
@@ -140,7 +140,7 @@ public class LogFactoryImpl extends LogFactory {
"org.apache.commons.logging.Log.allowFlawedDiscovery";
/**
- * The name (org.apache.commons.logging.Log.allowFlawedHierarchy)
+ * The name ({@code org.apache.commons.logging.Log.allowFlawedHierarchy})
* of the system property which can be set true/false to
* determine system behavior when a logging adapter class is
* encountered which has bound to the wrong Log class implementation.
@@ -203,7 +203,7 @@ public class LogFactoryImpl extends LogFactory {
* The one-argument constructor of the
* {@link org.apache.commons.logging.Log}
* implementation class that will be used to create new instances.
- * This value is initialized by getLogConstructor(),
+ * This value is initialized by {@code getLogConstructor()},
* and then returned repeatedly.
*/
protected Constructor logConstructor;
@@ -214,13 +214,13 @@ public class LogFactoryImpl extends LogFactory {
protected Class logConstructorSignature[] = { java.lang.String.class };
/**
- * The one-argument setLogFactory method of the selected
+ * The one-argument {@code setLogFactory} method of the selected
* {@link org.apache.commons.logging.Log} method, if it exists.
*/
protected Method logMethod;
/**
- * The signature of the setLogFactory method to be used.
+ * The signature of the {@code setLogFactory} method to be used.
*/
protected Class logMethodSignature[] = { LogFactory.class };
@@ -243,7 +243,7 @@ public class LogFactoryImpl extends LogFactory {
/**
* Return the configuration attribute with the specified name (if any),
- * or null if there is no such attribute.
+ * or {@code null} if there is no such attribute.
*
* @param name Name of the attribute to return
*/
@@ -264,11 +264,11 @@ public class LogFactoryImpl extends LogFactory {
/**
* Convenience method to derive a name from the specified class and
- * call getInstance(String) with it.
+ * call {@code getInstance(String)} with it.
*
* @param clazz Class for which a suitable Log name will be derived
*
- * @throws LogConfigurationException if a suitable Log
+ * @throws LogConfigurationException if a suitable {@code Log}
* instance cannot be returned
*/
@Override
@@ -277,20 +277,20 @@ public class LogFactoryImpl extends LogFactory {
}
/**
- *
Construct (if necessary) and return a Log instance,
+ *
Construct (if necessary) and return a {@code Log} instance, * using the factory's current set of configuration attributes.
* *NOTE - Depending upon the implementation of
- * the LogFactory you are using, the Log
+ * the {@code LogFactory} you are using, the {@code Log}
* instance you are returned may or may not be local to the current
* application, and may or may not be returned again on a subsequent
* call with the same name argument.
Log instance to be
+ * @param name Logical name of the {@code Log} instance to be
* returned (the meaning of this name is only known to the underlying
* logging implementation that is being wrapped)
*
- * @throws LogConfigurationException if a suitable Log
+ * @throws LogConfigurationException if a suitable {@code Log}
* instance cannot be returned
*/
@Override
@@ -331,8 +331,8 @@ public class LogFactoryImpl extends LogFactory {
/**
* Set the configuration attribute with the specified name. Calling
- * this with a null value is equivalent to calling
- * removeAttribute(name).
+ * this with a {@code null} value is equivalent to calling
+ * {@code removeAttribute(name)}.
*
* This method can be used to set logging configuration programmatically
* rather than via system properties. It can also be used in code running
@@ -350,7 +350,7 @@ public class LogFactoryImpl extends LogFactory {
* automatically as an attribute here.
*
* @param name Name of the attribute to set
- * @param value Value of the attribute to set, or null
+ * @param value Value of the attribute to set, or {@code null}
* to remove any setting for this attribute
*/
@Override
@@ -473,12 +473,12 @@ public class LogFactoryImpl extends LogFactory {
/**
- *
Return the Constructor that can be called to instantiate
+ *
Return the {@code Constructor} that can be called to instantiate * new {@link org.apache.commons.logging.Log} instances.
* *IMPLEMENTATION NOTE - Race conditions caused by
* calling this method from more than one thread are ignored, because
- * the same Constructor instance will ultimately be derived
+ * the same {@code Constructor} instance will ultimately be derived
* in all circumstances.
true if JDK 1.4 or later logging
- * is available. Also checks that the Throwable class
- * supports getStackTrace(), which is required by
+ * Return {@code true} if JDK 1.4 or later logging
+ * is available. Also checks that the {@code Throwable} class
+ * supports {@code getStackTrace()}, which is required by
* Jdk14Logger.
*
* @deprecated Never invoked by this class; subclasses should not assume
@@ -872,7 +872,7 @@ public class LogFactoryImpl extends LogFactory {
/**
* Appends message if the given name is similar to the candidate.
- * @param messageBuffer StringBuffer the message should be appended to,
+ * @param messageBuffer {@code StringBuffer} the message should be appended to,
* not null
* @param name the (trimmed) name to be test against the candidate, not null
* @param candidate the candidate name (not null)
@@ -900,7 +900,7 @@ public class LogFactoryImpl extends LogFactory {
* a Log implementation specified by the user under the
* property names {@link #LOG_PROPERTY} or {@link #LOG_PROPERTY_OLD}.
*
- * @return classname specified by the user, or null
+ * @return classname specified by the user, or {@code null}
*/
private String findUserSpecifiedLogClassName() {
if (isDiagnosticsEnabled()) {
@@ -962,8 +962,8 @@ public class LogFactoryImpl extends LogFactory {
*
* @param logAdapterClassName classname of the Log implementation
* @param logCategory argument to pass to the Log implementation's constructor
- * @param affectState true if this object's state should
- * be affected by this method call, false otherwise.
+ * @param affectState {@code true} if this object's state should
+ * be affected by this method call, {@code false} otherwise.
* @return an instance of the given class, or null if the logging
* library associated with the specified adapter is not available.
* @throws LogConfigurationException if there was a serious error with
@@ -1112,7 +1112,7 @@ public class LogFactoryImpl extends LogFactory {
this.logClassName = logAdapterClassName;
this.logConstructor = constructor;
- // Identify the setLogFactory method (if there is one)
+ // Identify the {@code setLogFactory} method (if there is one)
try {
this.logMethod = logAdapterClass.getMethod("setLogFactory", logMethodSignature);
logDiagnostic("Found method setLogFactory(LogFactory) in '" + logAdapterClassName + "'");
@@ -1254,11 +1254,11 @@ public class LogFactoryImpl extends LogFactory {
/**
* Generates an internal diagnostic logging of the discovery failure and
- * then throws a LogConfigurationException that wraps
- * the passed Throwable.
+ * then throws a {@code LogConfigurationException} that wraps
+ * the passed {@code Throwable}.
*
* @param logAdapterClassName is the class name of the Log implementation
- * that could not be instantiated. Cannot be null.
+ * that could not be instantiated. Cannot be {@code null}.
*
* @param classLoader is the classloader that we were trying to load the
* logAdapterClassName from when the exception occurred.
diff --git a/src/main/java/org/apache/commons/logging/impl/LogKitLogger.java b/src/main/java/org/apache/commons/logging/impl/LogKitLogger.java
index bca994a..65dac25 100644
--- a/src/main/java/org/apache/commons/logging/impl/LogKitLogger.java
+++ b/src/main/java/org/apache/commons/logging/impl/LogKitLogger.java
@@ -23,13 +23,13 @@ import org.apache.log.Hierarchy;
import org.apache.commons.logging.Log;
/**
- * Implementation of org.apache.commons.logging.Log
+ * Implementation of {@code org.apache.commons.logging.Log}
* that wraps the avalon-logkit
- * logging system. Configuration of LogKit is left to the user.
+ * logging system. Configuration of {@code LogKit} is left to the user.
*
- * LogKit accepts only String messages.
+ * {@code LogKit} accepts only {@code String} messages.
* Therefore, this implementation converts object messages into strings
- * by called their toString() method before logging them.
+ * by called their {@code toString()} method before logging them.
*
* @version $Id$
*/
@@ -40,7 +40,7 @@ public class LogKitLogger implements Log, Serializable {
// ------------------------------------------------------------- Attributes
- /** Logging goes to this LogKit logger */
+ /** Logging goes to this {@code LogKit} logger */
protected transient volatile Logger logger;
/** Name of this logger */
@@ -49,7 +49,7 @@ public class LogKitLogger implements Log, Serializable {
// ------------------------------------------------------------ Constructor
/**
- * Construct LogKitLogger which wraps the LogKit
+ * Construct {@code LogKitLogger} which wraps the {@code LogKit}
* logger with given name.
*
* @param name log name
@@ -80,7 +80,7 @@ public class LogKitLogger implements Log, Serializable {
// ----------------------------------------------------- Log Implementation
/**
- * Logs a message with org.apache.log.Priority.DEBUG.
+ * Logs a message with {@code org.apache.log.Priority.DEBUG}.
*
* @param message to log
* @see org.apache.commons.logging.Log#trace(Object)
@@ -91,7 +91,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.DEBUG.
+ * Logs a message with {@code org.apache.log.Priority.DEBUG}.
*
* @param message to log
* @param t log this cause
@@ -103,7 +103,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.DEBUG.
+ * Logs a message with {@code org.apache.log.Priority.DEBUG}.
*
* @param message to log
* @see org.apache.commons.logging.Log#debug(Object)
@@ -116,7 +116,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.DEBUG.
+ * Logs a message with {@code org.apache.log.Priority.DEBUG}.
*
* @param message to log
* @param t log this cause
@@ -130,7 +130,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.INFO.
+ * Logs a message with {@code org.apache.log.Priority.INFO}.
*
* @param message to log
* @see org.apache.commons.logging.Log#info(Object)
@@ -143,7 +143,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.INFO.
+ * Logs a message with {@code org.apache.log.Priority.INFO}.
*
* @param message to log
* @param t log this cause
@@ -157,7 +157,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.WARN.
+ * Logs a message with {@code org.apache.log.Priority.WARN}.
*
* @param message to log
* @see org.apache.commons.logging.Log#warn(Object)
@@ -170,7 +170,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.WARN.
+ * Logs a message with {@code org.apache.log.Priority.WARN}.
*
* @param message to log
* @param t log this cause
@@ -184,7 +184,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.ERROR.
+ * Logs a message with {@code org.apache.log.Priority.ERROR}.
*
* @param message to log
* @see org.apache.commons.logging.Log#error(Object)
@@ -197,7 +197,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.ERROR.
+ * Logs a message with {@code org.apache.log.Priority.ERROR}.
*
* @param message to log
* @param t log this cause
@@ -211,7 +211,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.FATAL_ERROR.
+ * Logs a message with {@code org.apache.log.Priority.FATAL_ERROR}.
*
* @param message to log
* @see org.apache.commons.logging.Log#fatal(Object)
@@ -224,7 +224,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Logs a message with org.apache.log.Priority.FATAL_ERROR.
+ * Logs a message with {@code org.apache.log.Priority.FATAL_ERROR}.
*
* @param message to log
* @param t log this cause
@@ -238,7 +238,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Checks whether the LogKit logger will log messages of priority DEBUG.
+ * Checks whether the {@code LogKit} logger will log messages of priority {@code DEBUG}.
*/
@Override
public boolean isDebugEnabled() {
@@ -246,7 +246,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Checks whether the LogKit logger will log messages of priority ERROR.
+ * Checks whether the {@code LogKit} logger will log messages of priority {@code ERROR}.
*/
@Override
public boolean isErrorEnabled() {
@@ -254,7 +254,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Checks whether the LogKit logger will log messages of priority FATAL_ERROR.
+ * Checks whether the {@code LogKit} logger will log messages of priority {@code FATAL_ERROR}.
*/
@Override
public boolean isFatalEnabled() {
@@ -262,7 +262,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Checks whether the LogKit logger will log messages of priority INFO.
+ * Checks whether the {@code LogKit} logger will log messages of priority {@code INFO}.
*/
@Override
public boolean isInfoEnabled() {
@@ -270,7 +270,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Checks whether the LogKit logger will log messages of priority DEBUG.
+ * Checks whether the {@code LogKit} logger will log messages of priority {@code DEBUG}.
*/
@Override
public boolean isTraceEnabled() {
@@ -278,7 +278,7 @@ public class LogKitLogger implements Log, Serializable {
}
/**
- * Checks whether the LogKit logger will log messages of priority WARN.
+ * Checks whether the {@code LogKit} logger will log messages of priority {@code WARN}.
*/
@Override
public boolean isWarnEnabled() {
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 561c4fa..cb73c8a 100644
--- a/src/main/java/org/apache/commons/logging/impl/SimpleLog.java
+++ b/src/main/java/org/apache/commons/logging/impl/SimpleLog.java
@@ -37,34 +37,34 @@ import org.apache.commons.logging.LogConfigurationException;
* for all defined loggers, to System.err. The following system properties
* are supported to configure the behavior of this logger:
*
org.apache.commons.logging.simplelog.defaultlog -
+ * org.apache.commons.logging.simplelog.log.xxxxx -
+ * org.apache.commons.logging.simplelog.showlogname -
- * Set to true if you want the Log instance name to be
- * included in output messages. Defaults to false.org.apache.commons.logging.simplelog.showShortLogname -
- * Set to true if you want the last component of the name to be
- * included in output messages. Defaults to true.org.apache.commons.logging.simplelog.showdatetime -
- * Set to true if you want the current date and time
- * to be included in output messages. Default is false.org.apache.commons.logging.simplelog.dateTimeFormat -
+ * java.text.SimpleDateFormat. If the format is not
+ * used in {@code java.text.SimpleDateFormat}. If the format is not
* specified or is invalid, the default format is used.
- * The default format is yyyy/MM/dd HH:mm:ss:SSS zzz.
* In addition to looking for system properties with the names specified
* above, this implementation also checks for a class loader resource named
- * "simplelog.properties", and includes any matching definitions
+ * {@code "simplelog.properties"}, and includes any matching definitions
* from this resource (if it exists).
*
* @version $Id$
@@ -76,7 +76,7 @@ public class SimpleLog implements Log, Serializable {
// ------------------------------------------------------- Class Attributes
- /** All system properties used by SimpleLog start with this */
+ /** All system properties used by {@code SimpleLog} start with this */
static protected final String systemPrefix = "org.apache.commons.logging.simplelog.";
/** Properties loaded from simplelog.properties */
@@ -269,7 +269,7 @@ public class SimpleLog implements Log, Serializable {
/**
* Do the actual logging.
*
- * This method assembles the message and then calls write()
+ * 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
@@ -335,10 +335,10 @@ public class SimpleLog implements Log, Serializable {
/**
* Write the content of the message accumulated in the specified
- * StringBuffer to the appropriate output destination. The
- * default implementation writes to System.err.
+ * {@code StringBuffer} to the appropriate output destination. The
+ * default implementation writes to {@code System.err}.
*
- * @param buffer A StringBuffer containing the accumulated
+ * @param buffer A {@code StringBuffer} containing the accumulated
* text to be logged
*/
protected void write(final StringBuffer buffer) {
@@ -360,7 +360,7 @@ public class SimpleLog implements Log, Serializable {
/**
* Logs a message with
- * org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_DEBUG.
+ * {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_DEBUG}.
*
* @param message to log
* @see org.apache.commons.logging.Log#debug(Object)
@@ -374,7 +374,7 @@ public class SimpleLog implements Log, Serializable {
/**
* Logs a message with
- * org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_DEBUG.
+ * {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_DEBUG}.
*
* @param message to log
* @param t log this cause
@@ -388,7 +388,7 @@ public class SimpleLog implements Log, Serializable {
}
/**
- * Logs a message with org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_TRACE.
+ * Logs a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_TRACE}.
*
* @param message to log
* @see org.apache.commons.logging.Log#trace(Object)
@@ -401,7 +401,7 @@ public class SimpleLog implements Log, Serializable {
}
/**
- * Logs a message with org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_TRACE.
+ * Logs a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_TRACE}.
*
* @param message to log
* @param t log this cause
@@ -415,7 +415,7 @@ public class SimpleLog implements Log, Serializable {
}
/**
- * Logs a message with org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_INFO.
+ * Logs a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_INFO}.
*
* @param message to log
* @see org.apache.commons.logging.Log#info(Object)
@@ -428,7 +428,7 @@ public class SimpleLog implements Log, Serializable {
}
/**
- * Logs a message with org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_INFO.
+ * Logs a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_INFO}.
*
* @param message to log
* @param t log this cause
@@ -442,7 +442,7 @@ public class SimpleLog implements Log, Serializable {
}
/**
- * Logs a message with org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_WARN.
+ * Logs a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_WARN}.
*
* @param message to log
* @see org.apache.commons.logging.Log#warn(Object)
@@ -455,7 +455,7 @@ public class SimpleLog implements Log, Serializable {
}
/**
- * Logs a message with org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_WARN.
+ * Logs a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_WARN}.
*
* @param message to log
* @param t log this cause
@@ -469,7 +469,7 @@ public class SimpleLog implements Log, Serializable {
}
/**
- * Logs a message with org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_ERROR.
+ * Logs a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_ERROR}.
*
* @param message to log
* @see org.apache.commons.logging.Log#error(Object)
@@ -482,7 +482,7 @@ public class SimpleLog implements Log, Serializable {
}
/**
- * Logs a message with org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_ERROR.
+ * Logs a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_ERROR}.
*
* @param message to log
* @param t log this cause
@@ -496,7 +496,7 @@ public class SimpleLog implements Log, Serializable {
}
/**
- * Log a message with org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_FATAL.
+ * Log a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_FATAL}.
*
* @param message to log
* @see org.apache.commons.logging.Log#fatal(Object)
@@ -509,7 +509,7 @@ public class SimpleLog implements Log, Serializable {
}
/**
- * Logs a message with org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_FATAL.
+ * Logs a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_FATAL}.
*
* @param message to log
* @param t log this cause
@@ -525,7 +525,7 @@ public class SimpleLog implements Log, Serializable {
/**
* Are debug messages currently enabled?
*
- * This allows expensive operations such as String
+ * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the
* logger.
*/
@@ -537,7 +537,7 @@ public class SimpleLog implements Log, Serializable {
/**
* Are error messages currently enabled?
*
- * This allows expensive operations such as String
+ * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the
* logger.
*/
@@ -549,7 +549,7 @@ public class SimpleLog implements Log, Serializable {
/**
* Are fatal messages currently enabled?
*
- * This allows expensive operations such as String
+ * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the
* logger.
*/
@@ -561,7 +561,7 @@ public class SimpleLog implements Log, Serializable {
/**
* Are info messages currently enabled?
*
- * This allows expensive operations such as String
+ * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the
* logger.
*/
@@ -573,7 +573,7 @@ public class SimpleLog implements Log, Serializable {
/**
* Are trace messages currently enabled?
*
- * This allows expensive operations such as String
+ * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the
* logger.
*/
@@ -585,7 +585,7 @@ public class SimpleLog implements Log, Serializable {
/**
* Are warn messages currently enabled?
*
- * This allows expensive operations such as String
+ * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the
* logger.
*/
diff --git a/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java b/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java
index 9b48bbc..0f1c81d 100644
--- a/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java
+++ b/src/main/java/org/apache/commons/logging/impl/WeakHashtable.java
@@ -29,37 +29,37 @@ import java.util.Map;
import java.util.Set;
/**
- * Implementation of Hashtable that uses WeakReference's
+ * Implementation of {@code Hashtable} that uses {@code WeakReference}'s
* to hold its keys thus allowing them to be reclaimed by the garbage collector.
* The associated values are retained using strong references.
*
- * This class follows the semantics of Hashtable as closely as
+ * This class follows the semantics of {@code Hashtable} as closely as
* possible. It therefore does not accept null values or keys.
*
* Note:
* This is not intended to be a general purpose hash table replacement.
* This implementation is also tuned towards a particular purpose: for use as a replacement
- * for Hashtable in LogFactory. This application requires
- * good liveliness for get and put. Various tradeoffs
+ * for {@code Hashtable} in {@code LogFactory}. This application requires
+ * good liveliness for {@code get} and {@code put}. Various tradeoffs
* have been made with this in mind.
*
* Usage: typical use case is as a drop-in replacement
- * for the Hashtable used in LogFactory for J2EE environments
+ * for the {@code Hashtable} used in {@code LogFactory} for J2EE environments
* running 1.3+ JVMs. Use of this class in most cases (see below) will
* allow classloaders to be collected by the garbage collector without the need
* to call {@link org.apache.commons.logging.LogFactory#release(ClassLoader) LogFactory.release(ClassLoader)}.
*
- * org.apache.commons.logging.LogFactory checks whether this class
+ * {@code org.apache.commons.logging.LogFactory} checks whether this class
* can be supported by the current JVM, and if so then uses it to store
- * references to the LogFactory implementation it loads
+ * references to the {@code LogFactory} implementation it loads
* (rather than using a standard Hashtable instance).
- * Having this class used instead of Hashtable solves
+ * Having this class used instead of {@code Hashtable} solves
* certain issues related to dynamic reloading of applications in J2EE-style
* environments. However this class requires java 1.3 or later (due to its use
- * of java.lang.ref.WeakReference and associates).
- * And by the way, this extends Hashtable rather than HashMap
+ * of {@code java.lang.ref.WeakReference} and associates).
+ * And by the way, this extends {@code Hashtable} rather than {@code HashMap}
* for backwards compatibility reasons. See the documentation
- * for method LogFactory.createFactoryStore for more details.
+ * for method {@code LogFactory.createFactoryStore} for more details.
*
* The reason all this is necessary is due to a issue which
* arises during hot deploy in a J2EE-like containers.
@@ -71,7 +71,7 @@ import java.util.Set;
* sets the component's classloader to null with the intent that all the
* component's classes get garbage-collected. However there's still a
* reference to the component's classloader from a key in the "global"
- * LogFactory's factories member! If LogFactory.release()
+ * {@code LogFactory}'s factories member! If {@code LogFactory.release()}
* is called whenever component is unloaded, the classloaders will be correctly
* garbage collected; this should be done by any container that
* bundles commons-logging by default. However, holding the classloader
@@ -83,24 +83,24 @@ import java.util.Set;
* be correctly unloaded without an explicit release. Though weak references
* are used for its keys, it is necessary to use strong references for its values.
*
- * If the abstract class LogFactory is
+ * If the abstract class {@code LogFactory} is
* loaded by the container classloader but a subclass of
- * LogFactory [LogFactory1] is loaded by the component's
+ * {@code LogFactory} [LogFactory1] is loaded by the component's
* classloader and an instance stored in the static map associated with the
* base LogFactory class, then there is a strong reference from the LogFactory
* class to the LogFactory1 instance (as normal) and a strong reference from
* the LogFactory1 instance to the component classloader via
- * getClass().getClassLoader(). This chain of references will prevent
+ * {@code getClass().getClassLoader()}. This chain of references will prevent
* collection of the child classloader.
*
* Such a situation occurs when the commons-logging.jar is
* loaded by a parent classloader (e.g. a server level classloader in a
- * servlet container) and a custom LogFactory implementation is
+ * servlet container) and a custom {@code LogFactory} implementation is
* loaded by a child classloader (e.g. a web app classloader).
*
* To avoid this scenario, ensure
* that any custom LogFactory subclass is loaded by the same classloader as
- * the base LogFactory. Creating custom LogFactory subclasses is,
+ * the base {@code LogFactory}. Creating custom LogFactory subclasses is,
* however, rare. The standard LogFactoryImpl class should be sufficient
* for most or all users.
*
@@ -420,7 +420,7 @@ public final class WeakHashtable extends Hashtable {
/**
*
- * @throws NullPointerException if referant is null
+ * @throws NullPointerException if referant is {@code null}
*/
private Referenced(final Object referant) {
reference = new WeakReference(referant);
@@ -431,7 +431,7 @@ public final class WeakHashtable extends Hashtable {
/**
*
- * @throws NullPointerException if key is null
+ * @throws NullPointerException if key is {@code null}
*/
private Referenced(final Object key, final ReferenceQueue queue) {
reference = new WeakKey(key, queue, this);
@@ -483,7 +483,7 @@ public final class WeakHashtable extends Hashtable {
/**
* WeakReference subclass that holds a hard reference to an
- * associated value and also makes accessible
+ * associated {@code value} and also makes accessible
* the Referenced object holding it.
*/
private final static class WeakKey extends WeakReference {
diff --git a/src/test/java/org/apache/commons/logging/PathableClassLoader.java b/src/test/java/org/apache/commons/logging/PathableClassLoader.java
index f985a11..272632e 100644
--- a/src/test/java/org/apache/commons/logging/PathableClassLoader.java
+++ b/src/test/java/org/apache/commons/logging/PathableClassLoader.java
@@ -243,7 +243,7 @@ public class PathableClassLoader extends URLClassLoader {
* The classpath of the classloader for this instance is scanned, and any
* jarfile in the path whose name starts with the logicalLib string is
* considered a match. For example, passing "foo" will match a url
- * of file:///some/where/foo-2.7.jar.
+ * of {@code file:///some/where/foo-2.7.jar}.
*
* When multiple classpath entries match the specified logicalLib string,
* the one with the shortest filename component is returned. This means that
@@ -384,8 +384,8 @@ public class PathableClassLoader extends URLClassLoader {
*
* Clean implementation of list function of
* {@link java.util.Collection} added in JDK 1.4
- * @param en Enumeration, possibly null
- * @return ArrayList containing the enumerated
+ * @param en {@code Enumeration}, possibly null
+ * @return {@code ArrayList} containing the enumerated
* elements in the enumerated order, not null
*/
private ArrayList toList(final Enumeration en) {
diff --git a/src/test/java/org/apache/commons/logging/config/PriorityConfigTestCase.java b/src/test/java/org/apache/commons/logging/config/PriorityConfigTestCase.java
index ae61f5f..78774f3 100644
--- a/src/test/java/org/apache/commons/logging/config/PriorityConfigTestCase.java
+++ b/src/test/java/org/apache/commons/logging/config/PriorityConfigTestCase.java
@@ -42,7 +42,7 @@ import org.apache.commons.logging.PathableTestSuite;
* The result should be that the third file is used.
*
* Note that parentFirst=true is used in this test because method
- * PathableClassLoader.getResources always behaves as if
+ * {@code PathableClassLoader.getResources} always behaves as if
* parentFirst=true; see the PathableClassLoader javadoc for details.
*/
diff --git a/src/test/java/org/apache/commons/logging/jdk14/CustomConfigTestCase.java b/src/test/java/org/apache/commons/logging/jdk14/CustomConfigTestCase.java
index 2876e7f..573d119 100644
--- a/src/test/java/org/apache/commons/logging/jdk14/CustomConfigTestCase.java
+++ b/src/test/java/org/apache/commons/logging/jdk14/CustomConfigTestCase.java
@@ -65,25 +65,25 @@ public class CustomConfigTestCase extends DefaultConfigTestCase {
/**
- *
The customized Handler we will be using.
The customized {@code Handler} we will be using.
*/ protected TestHandler handler = null; /** - *The underlying Handlers we will be using.
The underlying {@code Handler}s we will be using.
*/ protected Handler handlers[] = null; /** - *The underlying Logger we will be using.
The underlying {@code Logger} we will be using.
*/ protected Logger logger = null; /** - *The underlying LogManager we will be using.
The underlying {@code LogManager} we will be using.
*/ protected LogManager manager = null; diff --git a/src/test/java/org/apache/commons/logging/jdk14/TestHandler.java b/src/test/java/org/apache/commons/logging/jdk14/TestHandler.java index bee0dae..b4184a1 100644 --- a/src/test/java/org/apache/commons/logging/jdk14/TestHandler.java +++ b/src/test/java/org/apache/commons/logging/jdk14/TestHandler.java @@ -25,7 +25,7 @@ import java.util.logging.LogRecord; /** - *Test implementation of java.util.logging.Handler.
Test implementation of {@code java.util.logging.Handler}.
* * @author Craig R. McClanahan * @version $Revision$ $Date$ diff --git a/src/test/java/org/apache/commons/logging/log4j/log4j12/TestAppender.java b/src/test/java/org/apache/commons/logging/log4j/log4j12/TestAppender.java index a6d7ef7..6214176 100644 --- a/src/test/java/org/apache/commons/logging/log4j/log4j12/TestAppender.java +++ b/src/test/java/org/apache/commons/logging/log4j/log4j12/TestAppender.java @@ -25,7 +25,7 @@ import org.apache.log4j.AppenderSkeleton; import org.apache.log4j.spi.LoggingEvent; /** - * A custom implementation oforg.apache.log4j.Appender which
+ * A custom implementation of {@code org.apache.log4j.Appender} which
* converts the log4j-specific log event record into a representation that
* doesn't have a dependency on log4j and stores that new representation into
* an external list.