1
0

Format: "catch(" -> "catch ("

This commit is contained in:
Gary Gregory
2023-04-18 10:56:16 -04:00
parent f87a49c957
commit 869eaa18df
14 changed files with 28 additions and 28 deletions

View File

@@ -83,7 +83,7 @@ public class Log4JLogger implements Log, Serializable {
Priority _traceLevel;
try {
_traceLevel = (Priority) Level.class.getDeclaredField("TRACE").get(null);
} catch(final Exception ex) {
} catch (final Exception ex) {
// ok, trace not available
_traceLevel = Level.DEBUG;
}

View File

@@ -102,19 +102,19 @@ public class ServletContextCleaner implements ServletContextListener {
final Method releaseMethod = logFactoryClass.getMethod("release", RELEASE_SIGNATURE);
releaseMethod.invoke(null, params);
loader = logFactoryClass.getClassLoader().getParent();
} catch(final ClassNotFoundException ex) {
} catch (final ClassNotFoundException ex) {
// Neither the current classloader nor any of its ancestors could find
// the LogFactory class, so we can stop now.
loader = null;
} catch(final NoSuchMethodException ex) {
} catch (final NoSuchMethodException ex) {
// This is not expected; every version of JCL has this method
System.err.println("LogFactory instance found which does not support release method!");
loader = null;
} catch(final IllegalAccessException ex) {
} catch (final IllegalAccessException ex) {
// This is not expected; every ancestor class should be accessible
System.err.println("LogFactory instance found which is not accessable!");
loader = null;
} catch(final InvocationTargetException ex) {
} catch (final InvocationTargetException ex) {
// This is not expected
System.err.println("LogFactory instance release method failed!");
loader = null;

View File

@@ -182,7 +182,7 @@ public class SimpleLog implements Log, Serializable {
dateTimeFormat);
try {
dateFormatter = new SimpleDateFormat(dateTimeFormat);
} catch(final IllegalArgumentException e) {
} catch (final IllegalArgumentException e) {
// If the format pattern is invalid - use the default format
dateTimeFormat = DEFAULT_DATE_TIME_FORMAT;
dateFormatter = new SimpleDateFormat(dateTimeFormat);