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 9b7cd11596960f2a403fee376e421f6257953479 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Fri Feb 6 13:20:39 2026 +0000 (chores): modernize instanceof checks in camel-platform-http-main --- .../apache/camel/component/platform/http/main/MainHttpServerUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServerUtil.java b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServerUtil.java index f2565b46ae12..e585e32cc187 100644 --- a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServerUtil.java +++ b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServerUtil.java @@ -102,8 +102,7 @@ public class MainHttpServerUtil { public void notify(CamelEvent event) { // when reloading then there may be more routes in the same batch, so we only want // to log the summary at the end - if (event instanceof CamelEvent.RouteReloadedEvent) { - CamelEvent.RouteReloadedEvent re = (CamelEvent.RouteReloadedEvent) event; + if (event instanceof CamelEvent.RouteReloadedEvent re) { if (re.getIndex() < re.getTotal()) { return; }
