Add serialVersionUID where needed, some javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1432465 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -27,6 +27,9 @@ package org.apache.commons.logging;
|
|||||||
*/
|
*/
|
||||||
public class LogConfigurationException extends RuntimeException {
|
public class LogConfigurationException extends RuntimeException {
|
||||||
|
|
||||||
|
/** Serializable version identifier. */
|
||||||
|
private static final long serialVersionUID = 8486587136871052495L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a new exception with <code>null</code> as its detail message.
|
* Construct a new exception with <code>null</code> as its detail message.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -23,12 +23,12 @@ import java.util.Hashtable;
|
|||||||
import org.apache.commons.logging.impl.NoOpLog;
|
import org.apache.commons.logging.impl.NoOpLog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Factory for creating {@link Log} instances. Applications should call
|
* Factory for creating {@link Log} instances. Applications should call
|
||||||
* the <code>makeNewLogInstance()</code> method to instantiate new instances
|
* the <code>makeNewLogInstance()</code> method to instantiate new instances
|
||||||
* of the configured {@link Log} implementation class.</p>
|
* of the configured {@link Log} implementation class.
|
||||||
*
|
* <p>
|
||||||
* <p>By default, calling <code>getInstance()</code> will use the following
|
* By default, calling <code>getInstance()</code> will use the following
|
||||||
* algorithm:</p>
|
* algorithm:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>If Log4J is available, return an instance of
|
* <li>If Log4J is available, return an instance of
|
||||||
* <code>org.apache.commons.logging.impl.Log4JLogger</code>.</li>
|
* <code>org.apache.commons.logging.impl.Log4JLogger</code>.</li>
|
||||||
@@ -37,8 +37,8 @@ import org.apache.commons.logging.impl.NoOpLog;
|
|||||||
* <li>Otherwise, return an instance of
|
* <li>Otherwise, return an instance of
|
||||||
* <code>org.apache.commons.logging.impl.NoOpLog</code>.</li>
|
* <code>org.apache.commons.logging.impl.NoOpLog</code>.</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
* <p>
|
||||||
* <p>You can change the default behavior in one of two ways:</p>
|
* You can change the default behavior in one of two ways:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>On the startup command line, set the system property
|
* <li>On the startup command line, set the system property
|
||||||
* <code>org.apache.commons.logging.log</code> to the name of the
|
* <code>org.apache.commons.logging.log</code> to the name of the
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ import org.apache.commons.logging.Log;
|
|||||||
*/
|
*/
|
||||||
public class Jdk13LumberjackLogger implements Log, Serializable {
|
public class Jdk13LumberjackLogger implements Log, Serializable {
|
||||||
|
|
||||||
|
/** Serializable version identifier. */
|
||||||
|
private static final long serialVersionUID = -8649807923527610591L;
|
||||||
|
|
||||||
// ----------------------------------------------------- Instance Variables
|
// ----------------------------------------------------- Instance Variables
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ import org.apache.commons.logging.Log;
|
|||||||
*/
|
*/
|
||||||
public class Jdk14Logger implements Log, Serializable {
|
public class Jdk14Logger implements Log, Serializable {
|
||||||
|
|
||||||
|
/** Serializable version identifier. */
|
||||||
|
private static final long serialVersionUID = 4784713551416303804L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This member variable simply ensures that any attempt to initialise
|
* This member variable simply ensures that any attempt to initialise
|
||||||
* this class in a pre-1.4 JVM will result in an ExceptionInInitializerError.
|
* this class in a pre-1.4 JVM will result in an ExceptionInInitializerError.
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ import org.apache.log4j.Level;
|
|||||||
*/
|
*/
|
||||||
public class Log4JLogger implements Log, Serializable {
|
public class Log4JLogger implements Log, Serializable {
|
||||||
|
|
||||||
|
/** Serializable version identifier. */
|
||||||
|
private static final long serialVersionUID = 5160705895411730424L;
|
||||||
|
|
||||||
// ------------------------------------------------------------- Attributes
|
// ------------------------------------------------------------- Attributes
|
||||||
|
|
||||||
/** The fully qualified name of the Log4JLogger class. */
|
/** The fully qualified name of the Log4JLogger class. */
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ import org.apache.commons.logging.Log;
|
|||||||
*/
|
*/
|
||||||
public class LogKitLogger implements Log, Serializable {
|
public class LogKitLogger implements Log, Serializable {
|
||||||
|
|
||||||
|
/** Serializable version identifier. */
|
||||||
|
private static final long serialVersionUID = 3768538055836059519L;
|
||||||
|
|
||||||
// ------------------------------------------------------------- Attributes
|
// ------------------------------------------------------------- Attributes
|
||||||
|
|
||||||
/** Logging goes to this <code>LogKit</code> logger */
|
/** Logging goes to this <code>LogKit</code> logger */
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ import org.apache.commons.logging.Log;
|
|||||||
*/
|
*/
|
||||||
public class NoOpLog implements Log, Serializable {
|
public class NoOpLog implements Log, Serializable {
|
||||||
|
|
||||||
|
/** Serializable version identifier. */
|
||||||
|
private static final long serialVersionUID = 561423906191706148L;
|
||||||
|
|
||||||
/** Convenience constructor */
|
/** Convenience constructor */
|
||||||
public NoOpLog() { }
|
public NoOpLog() { }
|
||||||
/** Base constructor */
|
/** Base constructor */
|
||||||
|
|||||||
@@ -74,6 +74,9 @@ import org.apache.commons.logging.LogConfigurationException;
|
|||||||
*/
|
*/
|
||||||
public class SimpleLog implements Log, Serializable {
|
public class SimpleLog implements Log, Serializable {
|
||||||
|
|
||||||
|
/** Serializable version identifier. */
|
||||||
|
private static final long serialVersionUID = 136942970684951178L;
|
||||||
|
|
||||||
// ------------------------------------------------------- Class Attributes
|
// ------------------------------------------------------- Class Attributes
|
||||||
|
|
||||||
/** All system properties used by <code>SimpleLog</code> start with this */
|
/** All system properties used by <code>SimpleLog</code> start with this */
|
||||||
|
|||||||
@@ -117,6 +117,9 @@ import java.util.Set;
|
|||||||
*/
|
*/
|
||||||
public final class WeakHashtable extends Hashtable {
|
public final class WeakHashtable extends Hashtable {
|
||||||
|
|
||||||
|
/** Serializable version identifier. */
|
||||||
|
private static final long serialVersionUID = -1546036869799732453L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximum number of times put() or remove() can be called before
|
* The maximum number of times put() or remove() can be called before
|
||||||
* the map will be purged of all cleared entries.
|
* the map will be purged of all cleared entries.
|
||||||
|
|||||||
Reference in New Issue
Block a user