1
0

Fix typos in comments

This commit is contained in:
Gary Gregory
2024-08-21 09:17:35 -04:00
parent 41c6b731d9
commit 736d1c3fa7
3 changed files with 5 additions and 5 deletions

View File

@@ -751,7 +751,7 @@ public abstract class LogFactory {
// If the properties file exists, then its contents are used as
// "attributes" on the LogFactory implementation class. One particular
// property may also control which LogFactory concrete subclass is
// used, but only if other discovery mechanisms fail..
// used, but only if other discovery mechanisms fail.
//
// As the properties file (if it exists) will be used one way or
// another in the end we may as well look for it first.
@@ -1118,7 +1118,7 @@ public abstract class LogFactory {
}
} catch (final SecurityException ex) {
// We must be running in some very secure environment.
// We just have to assume output is not wanted..
// We just have to assume output is not wanted.
return null;
}

View File

@@ -367,7 +367,7 @@ public class LogFactoryImpl extends LogFactory {
} catch (final ClassNotFoundException originalClassNotFoundException) {
// The current class loader was unable to find the log adapter
// in this or any ancestor class loader. There's no point in
// trying higher up in the hierarchy in this case..
// trying higher up in the hierarchy in this case.
String msg = originalClassNotFoundException.getMessage();
logDiagnostic("The log adapter '" + logAdapterClassName + "' is not available via class loader " +
objectId(currentCL) + ": " + trim(msg));
@@ -418,7 +418,7 @@ public class LogFactoryImpl extends LogFactory {
// other classes that could not be found. This simply means that
// the underlying logger library is not present in this or any
// ancestor class loader. There's no point in trying higher up
// in the hierarchy in this case..
// in the hierarchy in this case.
final String msg = e.getMessage();
logDiagnostic("The log adapter '" + logAdapterClassName +
"' is missing dependencies when loaded via class loader " + objectId(currentCL) +

View File

@@ -113,7 +113,7 @@ public class MockSecurityManager extends SecurityManager {
//
// TODO: maybe check class is loaded via system loader or similar rather
// than checking name? Trusted domains may be different in alternative
// jvms..
// jvms.
} else if (cname.startsWith("org.apache.commons.logging.security")) {
// this is the unit test code; treat this like an untrusted client
// app that is using JCL