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 2016/06/28 15:57:42 UTC

logging-log4j2 git commit: Fix suspicious use of generics

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 9655b422e -> 33407b28f


Fix suspicious use of generics


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

Branch: refs/heads/master
Commit: 33407b28f8d56535655b0d7733466b0eb9b1c6c4
Parents: 9655b42
Author: Matt Sicker <bo...@gmail.com>
Authored: Tue Jun 28 10:57:39 2016 -0500
Committer: Matt Sicker <bo...@gmail.com>
Committed: Tue Jun 28 10:57:39 2016 -0500

----------------------------------------------------------------------
 .../apache/logging/log4j/core/filter/DynamicThresholdFilter.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/33407b28/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java
index e68c3d1..8072e7c 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/DynamicThresholdFilter.java
@@ -114,7 +114,7 @@ public final class DynamicThresholdFilter extends AbstractFilter {
     }
 
     private Result filter(final Level level, final Map<String, String> contextMap) {
-        final Object value = contextMap.get(key);
+        final String value = contextMap.get(key);
         if (value != null) {
             Level ctxLevel = levelMap.get(value);
             if (ctxLevel == null) {