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

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


The following commit(s) were added to refs/heads/main by this push:
     new 0bc81df13907 chore(components): beanio iterator design comment 
clarification
0bc81df13907 is described below

commit 0bc81df1390770c286ea861253e18928a80d6dc3
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Tue Dec 9 11:57:17 2025 +0100

    chore(components): beanio iterator design comment clarification
---
 .../main/java/org/apache/camel/dataformat/beanio/BeanIOIterator.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIOIterator.java
 
b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIOIterator.java
index dd1829a2ddf1..d570bc419fc1 100644
--- 
a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIOIterator.java
+++ 
b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/BeanIOIterator.java
@@ -76,6 +76,7 @@ public class BeanIOIterator implements Iterator<Object>, 
Closeable {
      * Sets a custom object as the next, such as from a custom error handler
      */
     public void setNext(Object next) {
-        this.forceNext = next;
+        // NOTE: this is forcefully setting forceNext object on purpose.
+        this.forceNext = next; // NOSONAR
     }
 }

Reply via email to