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 14:52:50 UTC

(commons-logging) 07/09: Better local names

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 98e559141d871877190877ca3fa94086fe99579d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 19 09:41:32 2023 -0500

    Better local names
---
 src/main/java/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;