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 6bbd89a6243d5257d6d6afc2732c16402005afb2 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Tue Feb 10 08:36:08 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 dc870adf4dc2..0daf1cdb73c4 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 @@ -156,8 +156,8 @@ public class MinioProducer extends DefaultProducer { if (object == null) { throw new IllegalArgumentException("Message body is null"); } - if (object instanceof File) { - filePayload = (File) object; + if (object instanceof File file) { + filePayload = file; inputStream = new FileInputStream(filePayload); if (contentLength <= 0) { contentLength = filePayload.length();
