logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1501366 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java
Date Tue, 09 Jul 2013 16:27:38 GMT
Author: ggregory
Date: Tue Jul  9 16:27:38 2013
New Revision: 1501366

URL: http://svn.apache.org/r1501366
Log:
Better param name.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java?rev=1501366&r1=1501365&r2=1501366&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java
Tue Jul  9 16:27:38 2013
@@ -107,12 +107,12 @@ public final class OptionConverter {
      * <p/>
      * <p>Case of value is unimportant.
      * @param value The value to convert.
-     * @param dEfault The default value.
+     * @param defaultValue The default value.
      * @return true or false, depending on the value and/or default.
      */
-    public static boolean toBoolean(final String value, final boolean dEfault) {
+    public static boolean toBoolean(final String value, final boolean defaultValue) {
         if (value == null) {
-            return dEfault;
+            return defaultValue;
         }
         final String trimmedVal = value.trim();
         if ("true".equalsIgnoreCase(trimmedVal)) {
@@ -121,16 +121,16 @@ public final class OptionConverter {
         if ("false".equalsIgnoreCase(trimmedVal)) {
             return false;
         }
-        return dEfault;
+        return defaultValue;
     }
 
     /**
      * Convert the String value to an int.
      * @param value The value as a String.
-     * @param dEfault The default value.
+     * @param defaultValue The default value.
      * @return The value as an int.
      */
-    public static int toInt(final String value, final int dEfault) {
+    public static int toInt(final String value, final int defaultValue) {
         if (value != null) {
             final String s = value.trim();
             try {
@@ -140,7 +140,7 @@ public final class OptionConverter {
                 e.printStackTrace();
             }
         }
-        return dEfault;
+        return defaultValue;
     }
 
     /**



Mime
View raw message