1
0

Remove trailing whitespace

This commit is contained in:
Gary Gregory
2023-11-25 11:09:13 -05:00
parent 5c371bcbbd
commit afb295013d
8 changed files with 33 additions and 33 deletions

View File

@@ -69,7 +69,7 @@ public abstract class LogFactory {
// lib and JCL have the necessary permissions even when the untrusted // lib and JCL have the necessary permissions even when the untrusted
// caller does not. That's a pretty hard route to exploit though. // caller does not. That's a pretty hard route to exploit though.
/** /**
* The name ({@code 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 * specify the priority of that particular config file. The associated value
@@ -203,14 +203,14 @@ public abstract class LogFactory {
*/ */
private static final int MAX_BROKEN_SERVICES = 3; private static final int MAX_BROKEN_SERVICES = 3;
/** /**
* The previously constructed {@code LogFactory} instances, keyed by * The previously constructed {@code LogFactory} instances, keyed by
* the {@code ClassLoader} with which it was created. * the {@code ClassLoader} with which it was created.
*/ */
protected static Hashtable<ClassLoader, LogFactory> factories; protected static Hashtable<ClassLoader, LogFactory> factories;
/** /**
* Previously constructed {@code LogFactory} instance as in the * Previously constructed {@code LogFactory} instance as in the
* {@code factories} map, but for the case where * {@code factories} map, but for the case where
@@ -530,7 +530,7 @@ public abstract class LogFactory {
return classLoader; return classLoader;
} }
/** /**
* Check cached factories (keyed by contextClassLoader) * Check cached factories (keyed by contextClassLoader)
* *
@@ -688,7 +688,7 @@ public abstract class LogFactory {
return props; return props;
} }
/** /**
* Returns the current context classloader. * Returns the current context classloader.
* <p> * <p>
@@ -1075,7 +1075,7 @@ public abstract class LogFactory {
}); });
} }
/** /**
* Read the specified system property, using an AccessController so that * Read the specified system property, using an AccessController so that
* the property can be read if JCL has been granted the appropriate * the property can be read if JCL has been granted the appropriate
@@ -1592,7 +1592,7 @@ public abstract class LogFactory {
* class loader would prevent garbage collection. * class loader would prevent garbage collection.
*/ */
public abstract void release(); public abstract void release();
/** /**
* Remove any configuration attribute associated with the specified name. * Remove any configuration attribute associated with the specified name.
* If there is no such attribute, no action is taken. * If there is no such attribute, no action is taken.

View File

@@ -71,7 +71,7 @@ public class LogSource {
* An empty immutable {@code String} array. * An empty immutable {@code String} array.
*/ */
private static final String[] EMPTY_STRING_ARRAY = {}; private static final String[] EMPTY_STRING_ARRAY = {};
static { static {
// Is Log4J Available? // Is Log4J Available?
@@ -127,7 +127,7 @@ public class LogSource {
} }
} }
/** /**
* Gets a {@code Log} instance by class. * Gets a {@code Log} instance by class.
* *
@@ -137,7 +137,7 @@ public class LogSource {
static public Log getInstance(final Class<?> clazz) { static public Log getInstance(final Class<?> clazz) {
return getInstance(clazz.getName()); return getInstance(clazz.getName());
} }
/** /**
* Gets a {@code Log} instance by class name. * Gets a {@code Log} instance by class name.
* *

View File

@@ -41,7 +41,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
/** Serializable version identifier. */ /** Serializable version identifier. */
private static final long serialVersionUID = -8649807923527610591L; private static final long serialVersionUID = -8649807923527610591L;
/** /**
* This member variable simply ensures that any attempt to initialize * This member variable simply ensures that any attempt to initialize
* 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.
@@ -69,7 +69,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
/** Class and method found flag. */ /** Class and method found flag. */
private boolean classAndMethodFound; private boolean classAndMethodFound;
/** /**
* Constructs a named instance of this Logger. * Constructs a named instance of this Logger.
* *
@@ -80,7 +80,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
logger = getLogger(); logger = getLogger();
} }
/** /**
* Logs a message with {@code java.util.logging.Level.FINE}. * Logs a message with {@code java.util.logging.Level.FINE}.
* *

View File

@@ -41,7 +41,7 @@ public class Jdk14Logger implements Log, Serializable {
*/ */
protected static final Level dummyLevel = Level.FINE; protected static final Level dummyLevel = Level.FINE;
/** /**
* The underlying Logger implementation we are using. * The underlying Logger implementation we are using.
*/ */

View File

@@ -63,7 +63,7 @@ public class Log4JLogger implements Log, Serializable {
// If an ExceptionInInitializerError is generated, then LogFactoryImpl // If an ExceptionInInitializerError is generated, then LogFactoryImpl
// will treat that as meaning that the appropriate underlying logging // will treat that as meaning that the appropriate underlying logging
// library is just not present - if discovery is in progress then // library is just not present - if discovery is in progress then
// discovery will continue. // discovery will continue.
static { static {
if (!Priority.class.isAssignableFrom(Level.class)) { if (!Priority.class.isAssignableFrom(Level.class)) {
// nope, this is log4j 1.3, so force an ExceptionInInitializerError // nope, this is log4j 1.3, so force an ExceptionInInitializerError

View File

@@ -80,14 +80,14 @@ public class LogFactoryImpl extends LogFactory {
*/ */
private static final String[] EMPTY_STRING_ARRAY = {}; private static final String[] EMPTY_STRING_ARRAY = {};
/** /**
* The name ({@code 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. * property identifying our {@link Log} implementation class.
*/ */
public static final String LOG_PROPERTY = "org.apache.commons.logging.Log"; public static final String LOG_PROPERTY = "org.apache.commons.logging.Log";
/** /**
* The deprecated system property used for backwards compatibility with * The deprecated system property used for backwards compatibility with
* old versions of JCL. * old versions of JCL.
@@ -165,7 +165,7 @@ public class LogFactoryImpl extends LogFactory {
return LogFactory.getClassLoader(clazz); return LogFactory.getClassLoader(clazz);
} }
/** /**
* Gets the context ClassLoader. * Gets the context ClassLoader.
* This method is a workaround for a java 1.2 compiler bug. * This method is a workaround for a java 1.2 compiler bug.
@@ -273,7 +273,7 @@ public class LogFactoryImpl extends LogFactory {
*/ */
protected Class[] logConstructorSignature = { String.class }; protected Class[] logConstructorSignature = { String.class };
/** /**
* The one-argument {@code setLogFactory} method of the selected * The one-argument {@code setLogFactory} method of the selected
* {@link org.apache.commons.logging.Log} method, if it exists. * {@link org.apache.commons.logging.Log} method, if it exists.
@@ -488,7 +488,7 @@ public class LogFactoryImpl extends LogFactory {
// //
// These methods only defined as workarounds for a java 1.2 bug; // These methods only defined as workarounds for a java 1.2 bug;
// theoretically none of these are needed. // theoretically none of these are needed.
/** /**
* Attempts to create a Log instance for the given category name. * Attempts to create a Log instance for the given category name.
* Follows the discovery process described in the class Javadoc. * Follows the discovery process described in the class Javadoc.
@@ -654,7 +654,7 @@ public class LogFactoryImpl extends LogFactory {
return attributes.get(name); return attributes.get(name);
} }
/** /**
* Return an array containing the names of all currently defined * Return an array containing the names of all currently defined
* configuration attributes. If there are no such attributes, a zero * configuration attributes. If there are no such attributes, a zero

View File

@@ -40,14 +40,14 @@ public class LogKitLogger implements Log, Serializable {
/** Serializable version identifier. */ /** Serializable version identifier. */
private static final long serialVersionUID = 3768538055836059519L; private static final long serialVersionUID = 3768538055836059519L;
/** Logging goes to this {@code LogKit} logger */ /** Logging goes to this {@code LogKit} logger */
protected transient volatile Logger logger; protected transient volatile Logger logger;
/** Name of this logger */ /** Name of this logger */
protected String name; protected String name;
/** /**
* Constructs {@code LogKitLogger} which wraps the {@code LogKit} * Constructs {@code LogKitLogger} which wraps the {@code LogKit}
* logger with given name. * logger with given name.
@@ -59,7 +59,7 @@ public class LogKitLogger implements Log, Serializable {
this.logger = getLogger(); this.logger = getLogger();
} }
/** /**
* Logs a message with {@code org.apache.log.Priority.DEBUG}. * Logs a message with {@code org.apache.log.Priority.DEBUG}.
* *
@@ -73,7 +73,7 @@ public class LogKitLogger implements Log, Serializable {
} }
} }
/** /**
* Logs a message with {@code org.apache.log.Priority.DEBUG}. * Logs a message with {@code org.apache.log.Priority.DEBUG}.
* *

View File

@@ -74,7 +74,7 @@ public class SimpleLog implements Log, Serializable {
/** Serializable version identifier. */ /** Serializable version identifier. */
private static final long serialVersionUID = 136942970684951178L; private static final long serialVersionUID = 136942970684951178L;
/** All system properties used by {@code SimpleLog} start with this */ /** All system properties used by {@code SimpleLog} start with this */
static protected final String systemPrefix = "org.apache.commons.logging.simplelog."; static protected final String systemPrefix = "org.apache.commons.logging.simplelog.";
@@ -110,7 +110,7 @@ public class SimpleLog implements Log, Serializable {
*/ */
static protected DateFormat dateFormatter; static protected DateFormat dateFormatter;
/** "Trace" level logging. */ /** "Trace" level logging. */
public static final int LOG_LEVEL_TRACE = 1; public static final int LOG_LEVEL_TRACE = 1;
/** "Debug" level logging. */ /** "Debug" level logging. */
@@ -130,7 +130,7 @@ public class SimpleLog implements Log, Serializable {
/** Enable no logging levels */ /** Enable no logging levels */
public static final int LOG_LEVEL_OFF = LOG_LEVEL_FATAL + 1; public static final int LOG_LEVEL_OFF = LOG_LEVEL_FATAL + 1;
// Initialize class attributes. // Initialize class attributes.
// Load properties file, if found. // Load properties file, if found.
// Override with system properties. // Override with system properties.
@@ -242,7 +242,7 @@ public class SimpleLog implements Log, Serializable {
}); });
} }
private static String getStringProperty(final String name) { private static String getStringProperty(final String name) {
String prop = null; String prop = null;
try { try {
@@ -259,11 +259,11 @@ public class SimpleLog implements Log, Serializable {
/** The name of this simple log instance */ /** The name of this simple log instance */
protected volatile String logName; protected volatile String logName;
/** The current log level */ /** The current log level */
protected volatile int currentLogLevel; protected volatile int currentLogLevel;
/** The short name of this simple log instance */ /** The short name of this simple log instance */
private volatile String shortLogName; private volatile String shortLogName;
@@ -312,7 +312,7 @@ public class SimpleLog implements Log, Serializable {
} }
} }
/** /**
* Logs a message with * Logs a message with
* {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_DEBUG}. * {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_DEBUG}.
@@ -369,7 +369,7 @@ public class SimpleLog implements Log, Serializable {
} }
} }
/** /**
* Log a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_FATAL}. * Log a message with {@code org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_FATAL}.
* *