You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/04/16 05:12:14 UTC

(camel-examples) branch main updated: CAMEL-21958: camel-core: Java DSL. Fix endChoice() to reuse end() and scope to current/nearest choice.

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new 5127bbbf CAMEL-21958: camel-core: Java DSL. Fix endChoice() to reuse end() and scope to current/nearest choice.
5127bbbf is described below

commit 5127bbbf6f1fb4d4eb101e66534bbc4fce516b66
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Apr 16 07:12:00 2025 +0200

    CAMEL-21958: camel-core: Java DSL. Fix endChoice() to reuse end() and scope to current/nearest choice.
---
 .../src/main/java/org/apache/camel/example/java8/MyApplication.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java-lambda/src/main/java/org/apache/camel/example/java8/MyApplication.java b/java-lambda/src/main/java/org/apache/camel/example/java8/MyApplication.java
index b1770662..f10b8955 100644
--- a/java-lambda/src/main/java/org/apache/camel/example/java8/MyApplication.java
+++ b/java-lambda/src/main/java/org/apache/camel/example/java8/MyApplication.java
@@ -59,7 +59,7 @@ public final class MyApplication {
                     .when()
                         .body(Objects::isNull)
                         .log("Received null body")
-                .endChoice();
+                .end();
         }
 
         private Long dateToTime(Exchange e) {