1
0

Format nits

This commit is contained in:
Gary Gregory
2023-11-19 16:21:18 -05:00
parent 6cff4d220a
commit a39a6d1234
3 changed files with 4 additions and 4 deletions

View File

@@ -1417,7 +1417,7 @@ public abstract class LogFactory {
logDiagnostic("Created object " + objectId(result) + " to manage classloader " +
objectId(contextClassLoader));
}
return (LogFactory)result;
return (LogFactory) result;
}
/**

View File

@@ -199,7 +199,7 @@ public class LogFactoryImpl extends LogFactory {
*/
private static ClassLoader getContextClassLoaderInternal()
throws LogConfigurationException {
return (ClassLoader)AccessController.doPrivileged(
return (ClassLoader) AccessController.doPrivileged(
(PrivilegedAction) LogFactory::directGetContextClassLoader);
}
@@ -956,7 +956,7 @@ public class LogFactoryImpl extends LogFactory {
*/
private ClassLoader getParentClassLoader(final ClassLoader cl) {
try {
return (ClassLoader)AccessController.doPrivileged(
return (ClassLoader) AccessController.doPrivileged(
(PrivilegedAction) () -> cl.getParent());
} catch (final SecurityException ex) {
logDiagnostic("[SECURITY] Unable to obtain parent classloader");

View File

@@ -156,7 +156,7 @@ public class LoadTestCase extends TestCase{
* Note that this test assumes that commons-logging.jar and log4j.jar
* are available via the system classpath.
*/
public void testInContainer()throws Exception{
public void testInContainer() throws Exception{
//problem can be in this step (broken app container or missconfiguration)
//1. Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader());