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 2015/10/14 21:59:37 UTC

logging-log4j2 git commit: Fix compiler hide warning.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 6df26b6c6 -> 258b7e25c


Fix compiler hide warning.

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

Branch: refs/heads/master
Commit: 258b7e25c25736198baf08b39ff8e2e43f86e900
Parents: 6df26b6
Author: ggregory <gg...@apache.org>
Authored: Wed Oct 14 12:59:26 2015 -0700
Committer: ggregory <gg...@apache.org>
Committed: Wed Oct 14 12:59:26 2015 -0700

----------------------------------------------------------------------
 .../log4j/core/util/DefaultShutdownCallbackRegistry.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/258b7e25/log4j-core/src/main/java/org/apache/logging/log4j/core/util/DefaultShutdownCallbackRegistry.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/DefaultShutdownCallbackRegistry.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/DefaultShutdownCallbackRegistry.java
index 7e432be..37765a9 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/DefaultShutdownCallbackRegistry.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/DefaultShutdownCallbackRegistry.java
@@ -95,9 +95,9 @@ public class DefaultShutdownCallbackRegistry implements ShutdownCallbackRegistry
 
                 @Override
                 public void run() {
-                    final Runnable hook = this.hook.get();
-                    if (hook != null) {
-                        hook.run();
+                    final Runnable runnableHook = this.hook.get();
+                    if (runnableHook != null) {
+                        runnableHook.run();
                         this.hook.clear();
                     }
                 }