logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1563247 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/AbstractFilterable.java
Date Fri, 31 Jan 2014 20:26:41 GMT
Author: ggregory
Date: Fri Jan 31 20:26:40 2014
New Revision: 1563247

URL: http://svn.apache.org/r1563247
Log:
Null checked are not needed here.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/AbstractFilterable.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/AbstractFilterable.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/AbstractFilterable.java?rev=1563247&r1=1563246&r2=1563247&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/AbstractFilterable.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/AbstractFilterable.java
Fri Jan 31 20:26:40 2014
@@ -100,7 +100,7 @@ public abstract class AbstractFilterable
      * Make the Filter available for use.
      */
     public void startFilter() {
-       if (filter != null && filter instanceof LifeCycle) {
+       if (filter instanceof LifeCycle) {
            ((LifeCycle) filter).start();
        }
     }
@@ -109,7 +109,7 @@ public abstract class AbstractFilterable
      * Cleanup the Filter.
      */
     public void stopFilter() {
-       if (filter != null && filter instanceof LifeCycle) {
+       if (filter instanceof LifeCycle) {
            ((LifeCycle) filter).stop();
        }
     }



Mime
View raw message