logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1566204 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java
Date Sun, 09 Feb 2014 03:42:52 GMT
Author: ggregory
Date: Sun Feb  9 03:42:52 2014
New Revision: 1566204

URL: http://svn.apache.org/r1566204
Log:
PMD: These nested if statements could be combined.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java?rev=1566204&r1=1566203&r2=1566204&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AppenderControl.java
Sun Feb  9 03:42:52 2014
@@ -70,10 +70,8 @@ public class AppenderControl extends Abs
                 return;
             }
         }
-        if (level != null) {
-            if (intLevel < event.getLevel().intLevel()) {
-                return;
-            }
+        if (level != null && intLevel < event.getLevel().intLevel()) {
+            return;
         }
         if (recursive.get() != null) {
             appender.getHandler().error("Recursive call to appender " + appender.getName());



Mime
View raw message