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 00cbc0605584cb752b358b89fb1e22dbaa50e2b2
Author: Otavio R. Piske <angusyo...@gmail.com>
AuthorDate: Sat Feb 24 13:21:37 2024 +0100

    CAMEL-20459: documentation fixes for the dynamic router EIP.
    
    Signed-off-by: Otavio R. Piske <angusyo...@gmail.com>
---
 .../src/main/docs/modules/eips/pages/dynamicRouter-eip.adoc           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/dynamicRouter-eip.adoc
 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/dynamicRouter-eip.adoc
index 60c3ae35435..2fc2cc9d379 100644
--- 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/dynamicRouter-eip.adoc
+++ 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/dynamicRouter-eip.adoc
@@ -136,7 +136,7 @@ public String slip(String body, @ExchangeProperties 
Map<String, Object> properti
     int invoked = 0;
     Object current = properties.get("invoked");
     if (current != null) {
-        invoked = Integer.valueOf(current.toString());
+        invoked = Integer.parseInt(current.toString());
     }
     invoked++;
     // and store the state back on the properties
@@ -179,7 +179,7 @@ public class MyDynamicRouter {
     @Consume(uri = "activemq:foo")
     @DynamicRouter
     public String route(@XPath("/customer/id") String customerId, 
@Header("Location") String location, Document body) {
-        // query a database to find the best match of the endpoint based on 
the input parameters
+        // Query a database to find the best match of the endpoint based on 
the input parameters
         // return the next endpoint uri, where to go. Return null to indicate 
the end.
     }
 }

Reply via email to