From 5957bdfe401652aa1f6c5de03de53faa16606abe Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Sat, 12 Jan 2013 14:19:30 +0000 Subject: [PATCH] Fix typos. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1432427 13f79535-47bb-0310-9956-ffa450edef68 --- NOTICE.txt | 2 +- STATUS.html | 4 ++-- src/java/org/apache/commons/logging/Log.java | 2 +- src/java/org/apache/commons/logging/LogFactory.java | 6 +++--- .../commons/logging/impl/ServletContextCleaner.java | 8 ++++---- .../org/apache/commons/logging/impl/WeakHashtable.java | 8 ++++---- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/NOTICE.txt b/NOTICE.txt index 53a733a..b65f88f 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -1,5 +1,5 @@ Apache Commons Logging -Copyright 2003-2007 The Apache Software Foundation +Copyright 2003-2013 The Apache Software Foundation This product includes software developed by The Apache Software Foundation (http://www.apache.org/). diff --git a/STATUS.html b/STATUS.html index 56ba3b0..ec262d9 100644 --- a/STATUS.html +++ b/STATUS.html @@ -49,7 +49,7 @@ to allow users to use the package standalone.

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 :
  • Provide support for LumberJack logger
  • Provide pluggable support for other logging APIs
  • -
  • Privide a simple System.out logger
  • +
  • Provide a simple System.out logger
  • diff --git a/src/java/org/apache/commons/logging/Log.java b/src/java/org/apache/commons/logging/Log.java index 14e4f12..64a73ff 100644 --- a/src/java/org/apache/commons/logging/Log.java +++ b/src/java/org/apache/commons/logging/Log.java @@ -35,7 +35,7 @@ package org.apache.commons.logging; * * The mapping of these log levels to the concepts used by the underlying * 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.

    * *

    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"); }