You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2015/10/31 08:14:05 UTC

logging-log4j2 git commit: Better ivar name and typo fix.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master a6c5ff217 -> 6d7adb992


Better ivar name and typo fix.


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/6d7adb99
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/6d7adb99
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/6d7adb99

Branch: refs/heads/master
Commit: 6d7adb9922f7ec3994e1cc262edc3e4326ba0951
Parents: a6c5ff2
Author: Matt Sicker <bo...@gmail.com>
Authored: Sat Oct 31 02:13:56 2015 -0500
Committer: Matt Sicker <bo...@gmail.com>
Committed: Sat Oct 31 02:13:56 2015 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/logging/log4j/util/LoaderUtil.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/6d7adb99/log4j-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java b/log4j-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java
index bf08c53..144be32 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java
@@ -185,11 +185,11 @@ public final class LoaderUtil {
     public static <T> T newCheckedInstanceOfProperty(final String propertyName, final Class<T> clazz)
         throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException,
         IllegalAccessException {
-        final String property = PropertiesUtil.getProperties().getStringProperty(propertyName);
-        if (property == null) {
+        final String className = PropertiesUtil.getProperties().getStringProperty(propertyName);
+        if (className == null) {
             return null;
         }
-        return newCheckedInstanceOf(propertyName, clazz);
+        return newCheckedInstanceOf(className, clazz);
     }
 
     private static boolean isIgnoreTccl() {