From 5957bdfe401652aa1f6c5de03de53faa16606abe Mon Sep 17 00:00:00 2001
From: Thomas Neidhart
commons-logging was heavily influenced by Avalon's Logkit and Log4J. The commons-logging -abstraction is meant to minimixe the differences between the two, and to allow a +abstraction is meant to minimize the differences between the two, and to allow a developer to not tie himself to a particular logging implementation.
@@ -64,7 +64,7 @@ The package does :Performance is often a logging concern.
diff --git a/src/java/org/apache/commons/logging/LogFactory.java b/src/java/org/apache/commons/logging/LogFactory.java
index 37c3b3d..297b29a 100644
--- a/src/java/org/apache/commons/logging/LogFactory.java
+++ b/src/java/org/apache/commons/logging/LogFactory.java
@@ -310,7 +310,7 @@ public abstract class LogFactory {
protected static Hashtable factories = null;
/**
- * Prevously constructed LogFactory instance as in the
+ * Previously constructed LogFactory instance as in the
* factories map, but for the case where
* getClassLoader returns null.
* This can happen when:
@@ -411,7 +411,7 @@ public abstract class LogFactory {
* properties defined in this file will be set as configuration attributes
* on the corresponding LogFactory instance.
NOTE - In a multithreaded environment it is possible + *
NOTE - In a multi-threaded environment it is possible * that two different instances will be returned for the same * classloader environment. *
@@ -464,7 +464,7 @@ public abstract class LogFactory { String useTCCLStr = props.getProperty(TCCL_KEY); if (useTCCLStr != null) { // The Boolean.valueOf(useTCCLStr).booleanValue() formulation - // is required for Java 1.2 compatability. + // is required for Java 1.2 compatibility. if (Boolean.valueOf(useTCCLStr).booleanValue() == false) { // Don't use current context classloader when locating any // LogFactory or Log classes, just use the class that loaded diff --git a/src/java/org/apache/commons/logging/impl/ServletContextCleaner.java b/src/java/org/apache/commons/logging/impl/ServletContextCleaner.java index b966077..51da68b 100644 --- a/src/java/org/apache/commons/logging/impl/ServletContextCleaner.java +++ b/src/java/org/apache/commons/logging/impl/ServletContextCleaner.java @@ -43,7 +43,7 @@ import org.apache.commons.logging.LogFactory; ** To use this class, configure the webapp deployment descriptor to call * this class on webapp undeploy; the contextDestroyed method will tell - * every accessable LogFactory class that the entry in its map for the + * every accessible LogFactory class that the entry in its map for the * current webapp's context classloader should be cleared. * * @since 1.1 @@ -96,8 +96,8 @@ public class ServletContextCleaner implements ServletContextListener { // clear any problem references. ClassLoader loader = tccl; while (loader != null) { - // Load via the current loader. Note that if the class is not accessable - // via this loader, but is accessable via some ancestor then that class + // Load via the current loader. Note that if the class is not accessible + // via this loader, but is accessible via some ancestor then that class // will be returned. try { Class logFactoryClass = loader.loadClass("org.apache.commons.logging.LogFactory"); @@ -113,7 +113,7 @@ public class ServletContextCleaner implements ServletContextListener { System.err.println("LogFactory instance found which does not support release method!"); loader = null; } catch(IllegalAccessException ex) { - // This is not expected; every ancestor class should be accessable + // This is not expected; every ancestor class should be accessible System.err.println("LogFactory instance found which is not accessable!"); loader = null; } catch(InvocationTargetException ex) { diff --git a/src/java/org/apache/commons/logging/impl/WeakHashtable.java b/src/java/org/apache/commons/logging/impl/WeakHashtable.java index 6119120..0157bfb 100644 --- a/src/java/org/apache/commons/logging/impl/WeakHashtable.java +++ b/src/java/org/apache/commons/logging/impl/WeakHashtable.java @@ -33,7 +33,7 @@ import java.util.Set; * 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 symantics of Hashtable as closely as
+ *
This class follows the semantics of Hashtable as closely as
* possible. It therefore does not accept null values or keys.
Note: @@ -45,7 +45,7 @@ import java.util.Set; *
*
* Usage: typical use case is as a drop-in replacement
- * for the Hashtable used in LogFactory for J2EE enviroments
+ * for the Hashtable used in 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)}.
@@ -53,7 +53,7 @@ import java.util.Set;
*
*
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 implementationd it loads
+ * references to the LogFactory implementation it loads
* (rather than using a standard Hashtable instance).
* Having this class used instead of Hashtable solves
* certain issues related to dynamic reloading of applications in J2EE-style
@@ -225,7 +225,7 @@ public final class WeakHashtable extends Hashtable {
*@see Hashtable
*/
public Object put(Object key, Object value) {
- // check for nulls, ensuring symantics match superclass
+ // check for nulls, ensuring semantics match superclass
if (key == null) {
throw new NullPointerException("Null keys are not allowed");
}