1
0

Remove trailing whitespace

This commit is contained in:
Gary Gregory
2024-09-11 21:02:44 -04:00
parent bfe9971f1f
commit 86a37e318d

View File

@@ -247,7 +247,7 @@ public abstract class LogFactory {
// output diagnostics from this class are static. // output diagnostics from this class are static.
String classLoaderName; String classLoaderName;
try { try {
classLoaderName = thisClassLoader != null ? objectId(thisClassLoader) : "BOOTLOADER"; classLoaderName = thisClassLoader != null ? objectId(thisClassLoader) : "BOOTLOADER";
} catch (final SecurityException e) { } catch (final SecurityException e) {
classLoaderName = "UNKNOWN"; classLoaderName = "UNKNOWN";
} }
@@ -849,12 +849,12 @@ public abstract class LogFactory {
// Third try looking into the properties file read earlier (if found) // Third try looking into the properties file read earlier (if found)
if (factory == null) { if (factory == null) {
if (props != null) { if (props != null) {
logDiagnostic(() -> logDiagnostic(() ->
"[LOOKUP] Looking in properties file for entry with key '" + FACTORY_PROPERTY + "[LOOKUP] Looking in properties file for entry with key '" + FACTORY_PROPERTY +
"' to define the LogFactory subclass to use..."); "' to define the LogFactory subclass to use...");
final String factoryClass = props.getProperty(FACTORY_PROPERTY); final String factoryClass = props.getProperty(FACTORY_PROPERTY);
if (factoryClass != null) { if (factoryClass != null) {
logDiagnostic(() -> logDiagnostic(() ->
"[LOOKUP] Properties file specifies LogFactory subclass '" + factoryClass + "'"); "[LOOKUP] Properties file specifies LogFactory subclass '" + factoryClass + "'");
factory = newFactory(factoryClass, baseClassLoader, contextClassLoader); factory = newFactory(factoryClass, baseClassLoader, contextClassLoader);
// TODO: think about whether we need to handle exceptions from newFactory // TODO: think about whether we need to handle exceptions from newFactory
@@ -879,7 +879,7 @@ public abstract class LogFactory {
logDiagnostic("Created object " + objectId(factory) + " to manage class loader " + objectId(contextClassLoader)); logDiagnostic("Created object " + objectId(factory) + " to manage class loader " + objectId(contextClassLoader));
} }
} else { } else {
logDiagnostic(() -> logDiagnostic(() ->
"[LOOKUP] Loading the default LogFactory implementation '" + FACTORY_DEFAULT + "[LOOKUP] Loading the default LogFactory implementation '" + FACTORY_DEFAULT +
"' via the same class loader that loaded this LogFactory class (ie not looking in the context class loader)."); "' via the same class loader that loaded this LogFactory class (ie not looking in the context class loader).");
// Note: unlike the above code which can try to load custom LogFactory // Note: unlike the above code which can try to load custom LogFactory