You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/11/19 21:36:31 UTC
(commons-logging) 09/14: Format nits
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
commit a39a6d123481f1aed4e4f4a72a45fc45944df0c1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 19 16:21:18 2023 -0500
Format nits
---
src/main/java/org/apache/commons/logging/LogFactory.java | 2 +-
src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java | 4 ++--
src/test/java/org/apache/commons/logging/LoadTestCase.java | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/commons/logging/LogFactory.java b/src/main/java/org/apache/commons/logging/LogFactory.java
index 17f5e26..14bf582 100644
--- a/src/main/java/org/apache/commons/logging/LogFactory.java
+++ b/src/main/java/org/apache/commons/logging/LogFactory.java
@@ -1417,7 +1417,7 @@ public abstract class LogFactory {
logDiagnostic("Created object " + objectId(result) + " to manage classloader " +
objectId(contextClassLoader));
}
- return (LogFactory)result;
+ return (LogFactory) result;
}
/**
diff --git a/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java b/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java
index be3ffab..abc2acf 100644
--- a/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java
+++ b/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java
@@ -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");
diff --git a/src/test/java/org/apache/commons/logging/LoadTestCase.java b/src/test/java/org/apache/commons/logging/LoadTestCase.java
index 799e6ee..363ce17 100644
--- a/src/test/java/org/apache/commons/logging/LoadTestCase.java
+++ b/src/test/java/org/apache/commons/logging/LoadTestCase.java
@@ -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());