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

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

commit 824d1d60ad092307d90ff5d7d9eed9132920ea65
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Jan 27 11:16:43 2025 +0100

    CAMEL-21599: camel-kamelet - Rework error handler for kamelets to be more 
standard Camel. WIP
---
 .../java/org/apache/camel/component/kamelet/KameletEndpoint.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-kamelet/src/main/java/org/apache/camel/component/kamelet/KameletEndpoint.java
 
b/components/camel-kamelet/src/main/java/org/apache/camel/component/kamelet/KameletEndpoint.java
index bffb41634ff..8481f3eeaa1 100644
--- 
a/components/camel-kamelet/src/main/java/org/apache/camel/component/kamelet/KameletEndpoint.java
+++ 
b/components/camel-kamelet/src/main/java/org/apache/camel/component/kamelet/KameletEndpoint.java
@@ -16,6 +16,7 @@
  */
 package org.apache.camel.component.kamelet;
 
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -82,7 +83,7 @@ public class KameletEndpoint extends DefaultEndpoint {
      * Whether kamelets should use error handling or not. By default, the 
Kamelet uses the same error handler as from
      * the calling route. This means that if the calling route has error 
handling that performs retries, or routing to a
      * dead letter channel, then the kamelet route will use this also.
-     *
+     * <p>
      * This can be turned off by setting this option to true. If off then the 
kamelet route is not using error handling,
      * and any exception thrown will for source kamelets be logged by the 
consumer, and the sink/action kamelets will
      * fail processing.
@@ -160,8 +161,7 @@ public class KameletEndpoint extends DefaultEndpoint {
     }
 
     public Map<String, Object> getKameletProperties() {
-        return kameletProperties;
-        //        return Collections.unmodifiableMap(kameletProperties);
+        return Collections.unmodifiableMap(kameletProperties);
     }
 
     /**

Reply via email to