logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1396004 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java
Date Tue, 09 Oct 2012 12:50:03 GMT
Author: ggregory
Date: Tue Oct  9 12:50:03 2012
New Revision: 1396004

URL: http://svn.apache.org/viewvc?rev=1396004&view=rev
Log:
Better param name, like Class.forName(String).

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java?rev=1396004&r1=1396003&r2=1396004&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java
Tue Oct  9 12:50:03 2012
@@ -199,19 +199,19 @@ public final class Loader {
 
     /**
      * Load a Class by name.
-     * @param clazz The class name.
+     * @param className The class name.
      * @return The Class.
      * @throws ClassNotFoundException if the Class could not be found.
      */
-    public static Class loadClass(String clazz) throws ClassNotFoundException {
-        // Just call Class.forName(clazz) if we are instructed to ignore the TCL.
+    public static Class loadClass(String className) throws ClassNotFoundException {
+        // Just call Class.forName(className) if we are instructed to ignore the TCL.
         if (ignoreTCL) {
-            return Class.forName(clazz);
+            return Class.forName(className);
         } else {
             try {
-                return getTCL().loadClass(clazz);
+                return getTCL().loadClass(className);
             } catch (Throwable e) {
-                return Class.forName(clazz);
+                return Class.forName(className);
             }
         }
     }



Mime
View raw message