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

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

commit 149194d4d43082833f820b23a608712f766c9fc3
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Feb 7 16:21:50 2025 +0100

    Polished
---
 .../src/main/java/org/apache/camel/spi/SendDynamicAware.java      | 4 ++--
 .../src/main/java/org/apache/camel/processor/PollEnricher.java    | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/core/camel-api/src/main/java/org/apache/camel/spi/SendDynamicAware.java 
b/core/camel-api/src/main/java/org/apache/camel/spi/SendDynamicAware.java
index 09e374d076e..5c48df877ab 100644
--- a/core/camel-api/src/main/java/org/apache/camel/spi/SendDynamicAware.java
+++ b/core/camel-api/src/main/java/org/apache/camel/spi/SendDynamicAware.java
@@ -45,7 +45,7 @@ public interface SendDynamicAware extends Service, 
CamelContextAware {
     String getScheme();
 
     /**
-     * Whether to traverses the given parameters, and resolve any parameter 
values which uses the RAW token syntax:
+     * Whether to traverse the given parameters, and resolve any parameter 
values which uses the RAW token syntax:
      * <tt>key=RAW(value)</tt>. And then remove the RAW tokens, and replace 
the content of the value, with just the
      * value.
      */
@@ -98,7 +98,7 @@ public interface SendDynamicAware extends Service, 
CamelContextAware {
 
     /**
      * Prepares for using optimised dynamic to by parsing the uri and 
returning an entry of details that are used for
-     * creating the pre and post processors, and the static uri.
+     * creating the pre- and post-processors, and the static uri.
      *
      * @param  exchange    the exchange
      * @param  uri         the resolved uri which is intended to be used
diff --git 
a/core/camel-core-processor/src/main/java/org/apache/camel/processor/PollEnricher.java
 
b/core/camel-core-processor/src/main/java/org/apache/camel/processor/PollEnricher.java
index a5de92aa02e..0d3fa37fd95 100644
--- 
a/core/camel-core-processor/src/main/java/org/apache/camel/processor/PollEnricher.java
+++ 
b/core/camel-core-processor/src/main/java/org/apache/camel/processor/PollEnricher.java
@@ -302,7 +302,7 @@ public class PollEnricher extends AsyncProcessorSupport 
implements IdAware, Rout
         }
 
         // remember current redelivery stats
-        Object redeliveried = exchange.getIn().getHeader(Exchange.REDELIVERED);
+        Object redelivered = exchange.getIn().getHeader(Exchange.REDELIVERED);
         Object redeliveryCounter = 
exchange.getIn().getHeader(Exchange.REDELIVERY_COUNTER);
         Object redeliveryMaxCounter = 
exchange.getIn().getHeader(Exchange.REDELIVERY_MAX_COUNTER);
 
@@ -365,8 +365,8 @@ public class PollEnricher extends AsyncProcessorSupport 
implements IdAware, Rout
                 exchange.getExchangeExtension().setRedeliveryExhausted(false);
 
                 // preserve the redelivery stats
-                if (redeliveried != null) {
-                    exchange.getMessage().setHeader(Exchange.REDELIVERED, 
redeliveried);
+                if (redelivered != null) {
+                    exchange.getMessage().setHeader(Exchange.REDELIVERED, 
redelivered);
                 }
                 if (redeliveryCounter != null) {
                     
exchange.getMessage().setHeader(Exchange.REDELIVERY_COUNTER, redeliveryCounter);
@@ -502,7 +502,7 @@ public class PollEnricher extends AsyncProcessorSupport 
implements IdAware, Rout
             if (newExchange != null) {
                 copyResultsPreservePattern(oldExchange, newExchange);
             } else {
-                // if no newExchange then there was no message from the 
external resource
+                // if no newExchange then there was no message from the 
external resource,
                 // and therefore we should set an empty body to indicate this 
fact
                 // but keep headers/attachments as we want to propagate those
                 oldExchange.getIn().setBody(null);

Reply via email to