This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 583cd4e41db0255da79362459da84a887629df78 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Fri Feb 6 12:58:37 2026 +0000 (chores): modernize instanceof checks in camel-base-engine --- .../src/main/java/org/apache/camel/impl/engine/DefaultChannel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultChannel.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultChannel.java index 46c06f9ef098..34c4acb82499 100644 --- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultChannel.java +++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultChannel.java @@ -234,7 +234,7 @@ public class DefaultChannel extends CamelInternalProcessor implements Channel { Collections.reverse(interceptors); // wrap the output with the configured interceptors Processor target = nextProcessor; - boolean skip = target instanceof InterceptableProcessor && !((InterceptableProcessor) target).canIntercept(); + boolean skip = target instanceof InterceptableProcessor ip && !ip.canIntercept(); if (!skip) { for (InterceptStrategy strategy : interceptors) { Processor next = target == nextProcessor ? null : nextProcessor;
