logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject [21/50] [abbrv] logging-log4j2 git commit: Use a better pname which does not hide the ivar as well.
Date Wed, 13 Jul 2016 20:09:25 GMT
Use a better pname which does not hide the ivar as well.

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

Branch: refs/heads/feature/LOG4J2-1430
Commit: 1496203ff23a90847acc5a683cae1d2a5877a2c7
Parents: 5b1c736
Author: Gary Gregory <ggregory@apache.org>
Authored: Fri Jul 1 09:10:02 2016 -0700
Committer: Gary Gregory <ggregory@apache.org>
Committed: Fri Jul 1 09:10:02 2016 -0700

----------------------------------------------------------------------
 .../logging/log4j/core/filter/ThresholdFilter.java  | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/1496203f/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/ThresholdFilter.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/ThresholdFilter.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/ThresholdFilter.java
index db7acea..2fafd7c 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/ThresholdFilter.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/ThresholdFilter.java
@@ -46,21 +46,21 @@ public final class ThresholdFilter extends AbstractFilter {
     }
 
     @Override
-    public Result filter(final Logger logger, final Level level, final Marker marker, final
String msg,
+    public Result filter(final Logger logger, final Level testLevel, final Marker marker,
final String msg,
                          final Object... params) {
-        return filter(level);
+        return filter(testLevel);
     }
 
     @Override
-    public Result filter(final Logger logger, final Level level, final Marker marker, final
Object msg,
+    public Result filter(final Logger logger, final Level testLevel, final Marker marker,
final Object msg,
                          final Throwable t) {
-        return filter(level);
+        return filter(testLevel);
     }
 
     @Override
-    public Result filter(final Logger logger, final Level level, final Marker marker, final
Message msg,
+    public Result filter(final Logger logger, final Level testLevel, final Marker marker,
final Message msg,
                          final Throwable t) {
-        return filter(level);
+        return filter(testLevel);
     }
 
     @Override
@@ -68,8 +68,8 @@ public final class ThresholdFilter extends AbstractFilter {
         return filter(event.getLevel());
     }
 
-    private Result filter(final Level level) {
-        return level.isMoreSpecificThan(this.level) ? onMatch : onMismatch;
+    private Result filter(final Level testLevel) {
+        return testLevel.isMoreSpecificThan(this.level) ? onMatch : onMismatch;
     }
 
     public Level getLevel() {


Mime
View raw message