From d262d0986eb994934be4c26df9351d99444486a2 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 20 Nov 2023 09:46:16 -0500 Subject: [PATCH] Document empty blocks --- .../java/org/apache/commons/logging/LogSource.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/LogSource.java b/src/main/java/org/apache/commons/logging/LogSource.java index 5a02c34..60d14b1 100644 --- a/src/main/java/org/apache/commons/logging/LogSource.java +++ b/src/main/java/org/apache/commons/logging/LogSource.java @@ -97,7 +97,8 @@ public class LogSource { if (name == null) { name = System.getProperty("org.apache.commons.logging.Log"); } - } catch (final Throwable t) { + } catch (final Throwable ignore) { + // Ignore } if (name != null) { try { @@ -105,8 +106,8 @@ public class LogSource { } catch (final Throwable t) { try { setLogImplementation("org.apache.commons.logging.impl.NoOpLog"); - } catch (final Throwable u) { - // ignored + } catch (final Throwable ignore) { + // Ignore } } } else { @@ -121,8 +122,8 @@ public class LogSource { } catch (final Throwable t) { try { setLogImplementation("org.apache.commons.logging.impl.NoOpLog"); - } catch (final Throwable u) { - // ignored + } catch (final Throwable ignore) { + // Ignore } } }