Fix typos in comments
This commit is contained in:
@@ -751,7 +751,7 @@ public abstract class LogFactory {
|
|||||||
// If the properties file exists, then its contents are used as
|
// If the properties file exists, then its contents are used as
|
||||||
// "attributes" on the LogFactory implementation class. One particular
|
// "attributes" on the LogFactory implementation class. One particular
|
||||||
// property may also control which LogFactory concrete subclass is
|
// 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
|
// 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.
|
// another in the end we may as well look for it first.
|
||||||
@@ -1118,7 +1118,7 @@ public abstract class LogFactory {
|
|||||||
}
|
}
|
||||||
} catch (final SecurityException ex) {
|
} catch (final SecurityException ex) {
|
||||||
// We must be running in some very secure environment.
|
// 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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ public class LogFactoryImpl extends LogFactory {
|
|||||||
} catch (final ClassNotFoundException originalClassNotFoundException) {
|
} catch (final ClassNotFoundException originalClassNotFoundException) {
|
||||||
// The current class loader was unable to find the log adapter
|
// The current class loader was unable to find the log adapter
|
||||||
// in this or any ancestor class loader. There's no point in
|
// 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();
|
String msg = originalClassNotFoundException.getMessage();
|
||||||
logDiagnostic("The log adapter '" + logAdapterClassName + "' is not available via class loader " +
|
logDiagnostic("The log adapter '" + logAdapterClassName + "' is not available via class loader " +
|
||||||
objectId(currentCL) + ": " + trim(msg));
|
objectId(currentCL) + ": " + trim(msg));
|
||||||
@@ -418,7 +418,7 @@ public class LogFactoryImpl extends LogFactory {
|
|||||||
// other classes that could not be found. This simply means that
|
// other classes that could not be found. This simply means that
|
||||||
// the underlying logger library is not present in this or any
|
// the underlying logger library is not present in this or any
|
||||||
// ancestor class loader. There's no point in trying higher up
|
// 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();
|
final String msg = e.getMessage();
|
||||||
logDiagnostic("The log adapter '" + logAdapterClassName +
|
logDiagnostic("The log adapter '" + logAdapterClassName +
|
||||||
"' is missing dependencies when loaded via class loader " + objectId(currentCL) +
|
"' is missing dependencies when loaded via class loader " + objectId(currentCL) +
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ public class MockSecurityManager extends SecurityManager {
|
|||||||
//
|
//
|
||||||
// TODO: maybe check class is loaded via system loader or similar rather
|
// TODO: maybe check class is loaded via system loader or similar rather
|
||||||
// than checking name? Trusted domains may be different in alternative
|
// than checking name? Trusted domains may be different in alternative
|
||||||
// jvms..
|
// jvms.
|
||||||
} else if (cname.startsWith("org.apache.commons.logging.security")) {
|
} else if (cname.startsWith("org.apache.commons.logging.security")) {
|
||||||
// this is the unit test code; treat this like an untrusted client
|
// this is the unit test code; treat this like an untrusted client
|
||||||
// app that is using JCL
|
// app that is using JCL
|
||||||
|
|||||||
Reference in New Issue
Block a user