1
0

Fix typos.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1432427 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart
2013-01-12 14:19:30 +00:00
parent 268b725476
commit 5957bdfe40
6 changed files with 15 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
Apache Commons Logging Apache Commons Logging
Copyright 2003-2007 The Apache Software Foundation Copyright 2003-2013 The Apache Software Foundation
This product includes software developed by This product includes software developed by
The Apache Software Foundation (http://www.apache.org/). The Apache Software Foundation (http://www.apache.org/).

View File

@@ -49,7 +49,7 @@ to allow users to use the package standalone.
</p> </p>
<p>commons-logging was heavily influenced by Avalon's Logkit and Log4J. The commons-logging <p>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. developer to not tie himself to a particular logging implementation.
</p> </p>
@@ -64,7 +64,7 @@ The package does :
<li>Provide support for <a href="http://sourceforge.net/projects/lumberjack/"> <li>Provide support for <a href="http://sourceforge.net/projects/lumberjack/">
LumberJack</a> logger</li> LumberJack</a> logger</li>
<li>Provide pluggable support for other logging APIs</li> <li>Provide pluggable support for other logging APIs</li>
<li>Privide a simple System.out logger</li> <li>Provide a simple System.out logger</li>
</ul> </ul>
</p> </p>

View File

@@ -35,7 +35,7 @@ package org.apache.commons.logging;
* </ol> * </ol>
* The mapping of these log levels to the concepts used by the underlying * The mapping of these log levels to the concepts used by the underlying
* logging system is implementation dependent. * logging system is implementation dependent.
* The implemention should ensure, though, that this ordering behaves * The implementation should ensure, though, that this ordering behaves
* as expected.</p> * as expected.</p>
* *
* <p>Performance is often a logging concern. * <p>Performance is often a logging concern.

View File

@@ -310,7 +310,7 @@ public abstract class LogFactory {
protected static Hashtable factories = null; protected static Hashtable factories = null;
/** /**
* Prevously constructed <code>LogFactory</code> instance as in the * Previously constructed <code>LogFactory</code> instance as in the
* <code>factories</code> map, but for the case where * <code>factories</code> map, but for the case where
* <code>getClassLoader</code> returns <code>null</code>. * <code>getClassLoader</code> returns <code>null</code>.
* This can happen when: * This can happen when:
@@ -411,7 +411,7 @@ public abstract class LogFactory {
* properties defined in this file will be set as configuration attributes * properties defined in this file will be set as configuration attributes
* on the corresponding <code>LogFactory</code> instance.</p> * on the corresponding <code>LogFactory</code> instance.</p>
* *
* <p><em>NOTE</em> - In a multithreaded environment it is possible * <p><em>NOTE</em> - In a multi-threaded environment it is possible
* that two different instances will be returned for the same * that two different instances will be returned for the same
* classloader environment. * classloader environment.
* </p> * </p>
@@ -464,7 +464,7 @@ public abstract class LogFactory {
String useTCCLStr = props.getProperty(TCCL_KEY); String useTCCLStr = props.getProperty(TCCL_KEY);
if (useTCCLStr != null) { if (useTCCLStr != null) {
// The Boolean.valueOf(useTCCLStr).booleanValue() formulation // 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) { if (Boolean.valueOf(useTCCLStr).booleanValue() == false) {
// Don't use current context classloader when locating any // Don't use current context classloader when locating any
// LogFactory or Log classes, just use the class that loaded // LogFactory or Log classes, just use the class that loaded

View File

@@ -43,7 +43,7 @@ import org.apache.commons.logging.LogFactory;
* <p> * <p>
* To use this class, configure the webapp deployment descriptor to call * To use this class, configure the webapp deployment descriptor to call
* this class on webapp undeploy; the contextDestroyed method will tell * 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. * current webapp's context classloader should be cleared.
* *
* @since 1.1 * @since 1.1
@@ -96,8 +96,8 @@ public class ServletContextCleaner implements ServletContextListener {
// clear any problem references. // clear any problem references.
ClassLoader loader = tccl; ClassLoader loader = tccl;
while (loader != null) { while (loader != null) {
// Load via the current loader. Note that if the class is not accessable // Load via the current loader. Note that if the class is not accessible
// via this loader, but is accessable via some ancestor then that class // via this loader, but is accessible via some ancestor then that class
// will be returned. // will be returned.
try { try {
Class logFactoryClass = loader.loadClass("org.apache.commons.logging.LogFactory"); 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!"); System.err.println("LogFactory instance found which does not support release method!");
loader = null; loader = null;
} catch(IllegalAccessException ex) { } 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!"); System.err.println("LogFactory instance found which is not accessable!");
loader = null; loader = null;
} catch(InvocationTargetException ex) { } catch(InvocationTargetException ex) {

View File

@@ -33,7 +33,7 @@ import java.util.Set;
* to hold its keys thus allowing them to be reclaimed by the garbage collector. * to hold its keys thus allowing them to be reclaimed by the garbage collector.
* The associated values are retained using strong references.</p> * The associated values are retained using strong references.</p>
* *
* <p>This class follows the symantics of <code>Hashtable</code> as closely as * <p>This class follows the semantics of <code>Hashtable</code> as closely as
* possible. It therefore does not accept null values or keys.</p> * possible. It therefore does not accept null values or keys.</p>
* *
* <p><strong>Note:</strong> * <p><strong>Note:</strong>
@@ -45,7 +45,7 @@ import java.util.Set;
* </p> * </p>
* <p> * <p>
* <strong>Usage:</strong> typical use case is as a drop-in replacement * <strong>Usage:</strong> typical use case is as a drop-in replacement
* for the <code>Hashtable</code> used in <code>LogFactory</code> for J2EE enviroments * for the <code>Hashtable</code> used in <code>LogFactory</code> for J2EE environments
* running 1.3+ JVMs. Use of this class <i>in most cases</i> (see below) will * running 1.3+ JVMs. Use of this class <i>in most cases</i> (see below) will
* allow classloaders to be collected by the garbage collector without the need * 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)}. * to call {@link org.apache.commons.logging.LogFactory#release(ClassLoader) LogFactory.release(ClassLoader)}.
@@ -53,7 +53,7 @@ import java.util.Set;
* *
* <p><code>org.apache.commons.logging.LogFactory</code> checks whether this class * <p><code>org.apache.commons.logging.LogFactory</code> checks whether this class
* can be supported by the current JVM, and if so then uses it to store * can be supported by the current JVM, and if so then uses it to store
* references to the <code>LogFactory</code> implementationd it loads * references to the <code>LogFactory</code> implementation it loads
* (rather than using a standard Hashtable instance). * (rather than using a standard Hashtable instance).
* Having this class used instead of <code>Hashtable</code> solves * Having this class used instead of <code>Hashtable</code> solves
* certain issues related to dynamic reloading of applications in J2EE-style * certain issues related to dynamic reloading of applications in J2EE-style
@@ -225,7 +225,7 @@ public final class WeakHashtable extends Hashtable {
*@see Hashtable *@see Hashtable
*/ */
public Object put(Object key, Object value) { public Object put(Object key, Object value) {
// check for nulls, ensuring symantics match superclass // check for nulls, ensuring semantics match superclass
if (key == null) { if (key == null) {
throw new NullPointerException("Null keys are not allowed"); throw new NullPointerException("Null keys are not allowed");
} }