This is an automated email from the ASF dual-hosted git repository. mattsicker pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 6a75890e3efa549856791f9574fc22a0ea0f0865 Author: Matt Sicker <[email protected]> AuthorDate: Sun Oct 15 19:31:44 2023 -0500 Remove redundant cast Signed-off-by: Matt Sicker <[email protected]> --- .../java/org/apache/logging/log4j/core/filter/AbstractFilterable.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/AbstractFilterable.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/AbstractFilterable.java index 3bc1dc9e86..6c5f91df1b 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/AbstractFilterable.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/AbstractFilterable.java @@ -22,7 +22,6 @@ import java.util.concurrent.locks.ReentrantLock; import org.apache.logging.log4j.core.AbstractLifeCycle; import org.apache.logging.log4j.core.Filter; -import org.apache.logging.log4j.core.LifeCycle; import org.apache.logging.log4j.core.LogEvent; import org.apache.logging.log4j.core.config.Property; import org.apache.logging.log4j.plugins.PluginElement; @@ -204,7 +203,7 @@ public abstract class AbstractFilterable extends AbstractLifeCycle implements Fi } boolean stopped = true; if (filter != null) { - stopped = ((LifeCycle) filter).stop(timeout, timeUnit); + stopped = filter.stop(timeout, timeUnit); } if (changeLifeCycleState) { this.setStopped();
