From 98e559141d871877190877ca3fa94086fe99579d Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 19 Nov 2023 09:41:32 -0500 Subject: [PATCH] Better local names --- .../org/apache/commons/logging/impl/SimpleLog.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/impl/SimpleLog.java b/src/main/java/org/apache/commons/logging/impl/SimpleLog.java index f3d332b..4e47c5f 100644 --- a/src/main/java/org/apache/commons/logging/impl/SimpleLog.java +++ b/src/main/java/org/apache/commons/logging/impl/SimpleLog.java @@ -143,12 +143,12 @@ public class SimpleLog implements Log, Serializable { if (null != in) { try { simpleLogProps.load(in); - } catch (final IOException e) { + } catch (final IOException ignore) { // ignored } finally { try { in.close(); - } catch (final IOException e) { + } catch (final IOException ignore) { // ignored } } @@ -171,9 +171,9 @@ public class SimpleLog implements Log, Serializable { } } - private static boolean getBooleanProperty(final String name, final boolean dephault) { + private static boolean getBooleanProperty(final String name, final boolean defaultValue) { final String prop = getStringProperty(name); - return prop == null ? dephault : "true".equalsIgnoreCase(prop); + return prop == null ? defaultValue : "true".equalsIgnoreCase(prop); } /** @@ -258,9 +258,9 @@ public class SimpleLog implements Log, Serializable { } return prop == null ? simpleLogProps.getProperty(name) : prop; } - private static String getStringProperty(final String name, final String dephault) { + private static String getStringProperty(final String name, final String defaultValue) { final String prop = getStringProperty(name); - return prop == null ? dephault : prop; + return prop == null ? defaultValue : prop; } /** The name of this simple log instance */ protected volatile String logName;