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 7305a93f906509eefb4f88f279946e8e19eee37d
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Tue Jan 27 05:56:05 2026 +0000

    (chores): modernize instanceof checks in camel-stripe
---
 .../main/java/org/apache/camel/component/stripe/StripeProducer.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/components/camel-stripe/src/main/java/org/apache/camel/component/stripe/StripeProducer.java
 
b/components/camel-stripe/src/main/java/org/apache/camel/component/stripe/StripeProducer.java
index 98c8ebc6fc47..d88a5649c8fc 100644
--- 
a/components/camel-stripe/src/main/java/org/apache/camel/component/stripe/StripeProducer.java
+++ 
b/components/camel-stripe/src/main/java/org/apache/camel/component/stripe/StripeProducer.java
@@ -84,8 +84,7 @@ public class StripeProducer extends DefaultProducer {
             return (Map<String, Object>) body;
         }
 
-        if (body instanceof String) {
-            String json = (String) body;
+        if (body instanceof String json) {
             if (json.trim().isEmpty()) {
                 return Collections.emptyMap();
             }

Reply via email to