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 f1d000055daeea72b80ec3965acfddc2202006e0
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Fri Feb 6 13:16:43 2026 +0000

    (chores): modernize instanceof checks in camel-minio
---
 .../src/main/java/org/apache/camel/component/minio/MinioProducer.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioProducer.java
 
b/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioProducer.java
index f5cfba2c68ba..dc870adf4dc2 100644
--- 
a/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioProducer.java
+++ 
b/components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioProducer.java
@@ -162,9 +162,9 @@ public class MinioProducer extends DefaultProducer {
                     if (contentLength <= 0) {
                         contentLength = filePayload.length();
                     }
-                } else if (object instanceof InputStream) {
+                } else if (object instanceof InputStream is) {
                     // Use the InputStream directly (e.g., from 
WrappedFile.getFile())
-                    inputStream = (InputStream) object;
+                    inputStream = is;
                 } else {
                     inputStream = 
exchange.getMessage().getMandatoryBody(InputStream.class);
                     if (contentLength <= 0) {

Reply via email to