You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2018/01/04 19:11:17 UTC
logging-log4j2 git commit: Remove unused local var.
Repository: logging-log4j2
Updated Branches:
refs/heads/master cabc1b8c8 -> c6f8c4031
Remove unused local var.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/c6f8c403
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/c6f8c403
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/c6f8c403
Branch: refs/heads/master
Commit: c6f8c4031ad54bbbdac27398edd128ba7385f3b0
Parents: cabc1b8
Author: Gary Gregory <gg...@apache.org>
Authored: Thu Jan 4 12:11:14 2018 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Thu Jan 4 12:11:14 2018 -0700
----------------------------------------------------------------------
.../src/main/java/org/apache/logging/log4j/util/StackLocator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c6f8c403/log4j-api/src/main/java/org/apache/logging/log4j/util/StackLocator.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/StackLocator.java b/log4j-api/src/main/java/org/apache/logging/log4j/util/StackLocator.java
index 1756c22..5fcfeb1 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/StackLocator.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/StackLocator.java
@@ -64,7 +64,7 @@ public final class StackLocator {
final Class<?> sunReflectionClass = LoaderUtil.loadClass("sun.reflect.Reflection");
getCallerClass = sunReflectionClass.getDeclaredMethod("getCallerClass", int.class);
Object o = getCallerClass.invoke(null, 0);
- final Object test1 = getCallerClass.invoke(null, 0);
+ getCallerClass.invoke(null, 0);
if (o == null || o != sunReflectionClass) {
getCallerClass = null;
java7u25CompensationOffset = -1;