This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-logging.git
The following commit(s) were added to refs/heads/master by this push: new 28c175b Fix spelling 28c175b is described below commit 28c175b8c883445f708868cdf102584049ca98a5 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Oct 31 06:27:13 2023 -0400 Fix spelling --- .../org/apache/commons/logging/impl/ServletContextCleaner.java | 2 +- .../java/org/apache/commons/logging/NullClassLoaderTestCase.java | 2 +- .../org/apache/commons/logging/jdk14/CustomConfigAPITestCase.java | 2 +- .../apache/commons/logging/jdk14/CustomConfigFullTestCase.java | 2 +- .../org/apache/commons/logging/jdk14/CustomConfigTestCase.java | 2 +- .../org/apache/commons/logging/pathable/ChildFirstTestCase.java | 8 ++++---- .../org/apache/commons/logging/pathable/ParentFirstTestCase.java | 8 ++++---- .../org/apache/commons/logging/tccl/log/TcclDisabledTestCase.java | 6 +++--- .../org/apache/commons/logging/tccl/log/TcclEnabledTestCase.java | 2 +- .../commons/logging/tccl/logfactory/TcclDisabledTestCase.java | 4 ++-- .../commons/logging/tccl/logfactory/TcclEnabledTestCase.java | 2 +- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/impl/ServletContextCleaner.java b/src/main/java/org/apache/commons/logging/impl/ServletContextCleaner.java index 98774fc..fc50642 100644 --- a/src/main/java/org/apache/commons/logging/impl/ServletContextCleaner.java +++ b/src/main/java/org/apache/commons/logging/impl/ServletContextCleaner.java @@ -112,7 +112,7 @@ public class ServletContextCleaner implements ServletContextListener { loader = null; } catch (final IllegalAccessException ex) { // 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 accessible!"); loader = null; } catch (final InvocationTargetException ex) { // This is not expected diff --git a/src/test/java/org/apache/commons/logging/NullClassLoaderTestCase.java b/src/test/java/org/apache/commons/logging/NullClassLoaderTestCase.java index 012a720..681dff2 100644 --- a/src/test/java/org/apache/commons/logging/NullClassLoaderTestCase.java +++ b/src/test/java/org/apache/commons/logging/NullClassLoaderTestCase.java @@ -35,7 +35,7 @@ public class NullClassLoaderTestCase extends TestCase { */ public void testSameLogObject() throws Exception { // unfortunately, there just isn't any way to emulate JCL being - // accessable via the null classloader in "standard" systems, so + // accessible via the null classloader in "standard" systems, so // we can't include this test in our standard unit tests. } } diff --git a/src/test/java/org/apache/commons/logging/jdk14/CustomConfigAPITestCase.java b/src/test/java/org/apache/commons/logging/jdk14/CustomConfigAPITestCase.java index 15793f6..c8824c6 100644 --- a/src/test/java/org/apache/commons/logging/jdk14/CustomConfigAPITestCase.java +++ b/src/test/java/org/apache/commons/logging/jdk14/CustomConfigAPITestCase.java @@ -37,7 +37,7 @@ public class CustomConfigAPITestCase extends CustomConfigTestCase { final PathableClassLoader parent = new PathableClassLoader(null); parent.useExplicitLoader("junit.", Test.class.getClassLoader()); - // the TestHandler class must be accessable from the System classloader + // the TestHandler class must be accessible from the System classloader // in order for java.util.logging.LogManager.readConfiguration to // be able to instantiate it. And this test case must see the same // class in order to be able to access its data. Yes this is ugly diff --git a/src/test/java/org/apache/commons/logging/jdk14/CustomConfigFullTestCase.java b/src/test/java/org/apache/commons/logging/jdk14/CustomConfigFullTestCase.java index 241954e..11547b9 100644 --- a/src/test/java/org/apache/commons/logging/jdk14/CustomConfigFullTestCase.java +++ b/src/test/java/org/apache/commons/logging/jdk14/CustomConfigFullTestCase.java @@ -39,7 +39,7 @@ public class CustomConfigFullTestCase extends CustomConfigTestCase { final PathableClassLoader parent = new PathableClassLoader(null); parent.useExplicitLoader("junit.", Test.class.getClassLoader()); - // the TestHandler class must be accessable from the System classloader + // the TestHandler class must be accessible from the System classloader // in order for java.util.logging.LogManager.readConfiguration to // be able to instantiate it. And this test case must see the same // class in order to be able to access its data. Yes this is ugly diff --git a/src/test/java/org/apache/commons/logging/jdk14/CustomConfigTestCase.java b/src/test/java/org/apache/commons/logging/jdk14/CustomConfigTestCase.java index e740e93..7d968ae 100644 --- a/src/test/java/org/apache/commons/logging/jdk14/CustomConfigTestCase.java +++ b/src/test/java/org/apache/commons/logging/jdk14/CustomConfigTestCase.java @@ -117,7 +117,7 @@ public class CustomConfigTestCase extends DefaultConfigTestCase { final PathableClassLoader cl = new PathableClassLoader(null); cl.useExplicitLoader("junit.", Test.class.getClassLoader()); - // the TestHandler class must be accessable from the System classloader + // the TestHandler class must be accessible from the System classloader // in order for java.util.logging.LogManager.readConfiguration to // be able to instantiate it. And this test case must see the same // class in order to be able to access its data. Yes this is ugly diff --git a/src/test/java/org/apache/commons/logging/pathable/ChildFirstTestCase.java b/src/test/java/org/apache/commons/logging/pathable/ChildFirstTestCase.java index 429b05c..27f8b00 100644 --- a/src/test/java/org/apache/commons/logging/pathable/ChildFirstTestCase.java +++ b/src/test/java/org/apache/commons/logging/pathable/ChildFirstTestCase.java @@ -165,7 +165,7 @@ public class ChildFirstTestCase extends TestCase { // junit classes should be visible; their classloader is not // in the hierarchy of parent classloaders for this class, - // though it is accessable due to trickery in the PathableClassLoader. + // though it is accessible due to trickery in the PathableClassLoader. final Class junitTest = contextLoader.loadClass("junit.framework.Test"); final Set ancestorCLs = getAncestorCLs(); assertFalse("Junit not loaded by ancestor classloader", @@ -215,15 +215,15 @@ public class ChildFirstTestCase extends TestCase { resource = childLoader.getResource("nosuchfile"); assertNull("Non-null URL returned for invalid resource name", resource); - // getResource where it is accessable only to parent classloader + // getResource where it is accessible only to parent classloader resource = childLoader.getResource("org/apache/commons/logging/Log.class"); assertNotNull("Unable to locate Log.class resource", resource); - // getResource where it is accessable only to child classloader + // getResource where it is accessible only to child classloader resource = childLoader.getResource("org/apache/commons/logging/PathableTestSuite.class"); assertNotNull("Unable to locate PathableTestSuite.class resource", resource); - // getResource where it is accessable to both classloaders. The one visible + // getResource where it is accessible to both classloaders. The one visible // to the child should be returned. The URL returned will be of form // jar:file:/x/y.jar!path/to/resource. The file name part should include the jarname // of form commons-logging-adapters-nnnn.jar, not commons-logging-nnnn.jar diff --git a/src/test/java/org/apache/commons/logging/pathable/ParentFirstTestCase.java b/src/test/java/org/apache/commons/logging/pathable/ParentFirstTestCase.java index 21fb604..4c713c2 100644 --- a/src/test/java/org/apache/commons/logging/pathable/ParentFirstTestCase.java +++ b/src/test/java/org/apache/commons/logging/pathable/ParentFirstTestCase.java @@ -163,7 +163,7 @@ public class ParentFirstTestCase extends TestCase { // junit classes should be visible; their classloader is not // in the hierarchy of parent classloaders for this class, - // though it is accessable due to trickery in the PathableClassLoader. + // though it is accessible due to trickery in the PathableClassLoader. final Class junitTest = contextLoader.loadClass("junit.framework.Test"); final Set ancestorCLs = getAncestorCLs(); assertFalse("Junit not loaded by ancestor classloader", @@ -213,15 +213,15 @@ public class ParentFirstTestCase extends TestCase { resource = childLoader.getResource("nosuchfile"); assertNull("Non-null URL returned for invalid resource name", resource); - // getResource where it is accessable only to parent classloader + // getResource where it is accessible only to parent classloader resource = childLoader.getResource("org/apache/commons/logging/Log.class"); assertNotNull("Unable to locate Log.class resource", resource); - // getResource where it is accessable only to child classloader + // getResource where it is accessible only to child classloader resource = childLoader.getResource("org/apache/commons/logging/PathableTestSuite.class"); assertNotNull("Unable to locate PathableTestSuite.class resource", resource); - // getResource where it is accessable to both classloaders. The one visible + // getResource where it is accessible to both classloaders. The one visible // to the parent should be returned. The URL returned will be of form // jar:file:/x/y.jar!path/to/resource. The file name part should include the jarname // of form commons-logging-nnnn.jar, not commons-logging-adapters-nnnn.jar diff --git a/src/test/java/org/apache/commons/logging/tccl/log/TcclDisabledTestCase.java b/src/test/java/org/apache/commons/logging/tccl/log/TcclDisabledTestCase.java index f1b472d..ee0d15d 100644 --- a/src/test/java/org/apache/commons/logging/tccl/log/TcclDisabledTestCase.java +++ b/src/test/java/org/apache/commons/logging/tccl/log/TcclDisabledTestCase.java @@ -136,8 +136,8 @@ public class TcclDisabledTestCase extends TestCase { } /** - * Verify that the custom Log implementation which is only accessable - * via the TCCL has NOT been loaded. Because this is only accessable via the + * Verify that the custom Log implementation which is only accessible + * via the TCCL has NOT been loaded. Because this is only accessible via the * TCCL, and we've use a commons-logging.properties that disables TCCL loading, * we should see the default Log rather than the custom one. */ @@ -151,7 +151,7 @@ public class TcclDisabledTestCase extends TestCase { try { final Log log = instance.getInstance("test"); fail("Unexpectedly succeeded in loading a custom Log class" - + " that is only accessable via the tccl."); + + " that is only accessible via the tccl."); assertNotNull(log); // silence compiler warning about unused var } catch (final LogConfigurationException ex) { // ok, expected diff --git a/src/test/java/org/apache/commons/logging/tccl/log/TcclEnabledTestCase.java b/src/test/java/org/apache/commons/logging/tccl/log/TcclEnabledTestCase.java index 9b13948..a9f769d 100644 --- a/src/test/java/org/apache/commons/logging/tccl/log/TcclEnabledTestCase.java +++ b/src/test/java/org/apache/commons/logging/tccl/log/TcclEnabledTestCase.java @@ -136,7 +136,7 @@ public class TcclEnabledTestCase extends TestCase { } /** - * Verify that the custom Log implementation which is only accessable + * Verify that the custom Log implementation which is only accessible * via the TCCL has successfully been loaded as specified in the config file. * This proves that the TCCL was used to load that class. */ diff --git a/src/test/java/org/apache/commons/logging/tccl/logfactory/TcclDisabledTestCase.java b/src/test/java/org/apache/commons/logging/tccl/logfactory/TcclDisabledTestCase.java index 8e28eb7..487e020 100644 --- a/src/test/java/org/apache/commons/logging/tccl/logfactory/TcclDisabledTestCase.java +++ b/src/test/java/org/apache/commons/logging/tccl/logfactory/TcclDisabledTestCase.java @@ -138,8 +138,8 @@ public class TcclDisabledTestCase extends TestCase { } /** - * Verify that the custom LogFactory implementation which is only accessable - * via the TCCL has NOT been loaded. Because this is only accessable via the + * Verify that the custom LogFactory implementation which is only accessible + * via the TCCL has NOT been loaded. Because this is only accessible via the * TCCL, and we've use a commons-logging.properties that disables TCCL loading, * we should see the default LogFactoryImpl rather than the custom one. */ diff --git a/src/test/java/org/apache/commons/logging/tccl/logfactory/TcclEnabledTestCase.java b/src/test/java/org/apache/commons/logging/tccl/logfactory/TcclEnabledTestCase.java index 0c40d42..9a12def 100644 --- a/src/test/java/org/apache/commons/logging/tccl/logfactory/TcclEnabledTestCase.java +++ b/src/test/java/org/apache/commons/logging/tccl/logfactory/TcclEnabledTestCase.java @@ -134,7 +134,7 @@ public class TcclEnabledTestCase extends TestCase { } /** - * Verify that the custom LogFactory implementation which is only accessable + * Verify that the custom LogFactory implementation which is only accessible * via the TCCL has successfully been loaded as specified in the config file. * This proves that the TCCL was used to load that class. */