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 447b0d13a3096a772bb58ec7cd66da97919e95b8
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Mon Jan 26 11:14:42 2026 +0000

    (chores): modernize instanceof checks in camel-jira
---
 .../org/apache/camel/component/jira/producer/AttachFileProducer.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AttachFileProducer.java
 
b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AttachFileProducer.java
index e04bda02d5e2..0f59c35ee603 100644
--- 
a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AttachFileProducer.java
+++ 
b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AttachFileProducer.java
@@ -49,8 +49,8 @@ public class AttachFileProducer extends DefaultProducer {
         String name = null;
         File file = null;
         Object body = exchange.getIn().getBody();
-        if (body instanceof File) {
-            file = (File) body;
+        if (body instanceof File fileBody) {
+            file = fileBody;
         } else {
             WrappedFile<?> wf = exchange.getIn().getBody(WrappedFile.class);
             if (wf != null && wf.getFile() instanceof File) {

Reply via email to