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 08fe76bd32af42ce2819fb2c2551d203b524085c
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Fri Feb 6 13:24:03 2026 +0000

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

diff --git 
a/components/camel-tahu/src/main/java/org/apache/camel/component/tahu/TahuEdgePayloadConverter.java
 
b/components/camel-tahu/src/main/java/org/apache/camel/component/tahu/TahuEdgePayloadConverter.java
index db15a5bacf9e..83558bbe3775 100644
--- 
a/components/camel-tahu/src/main/java/org/apache/camel/component/tahu/TahuEdgePayloadConverter.java
+++ 
b/components/camel-tahu/src/main/java/org/apache/camel/component/tahu/TahuEdgePayloadConverter.java
@@ -78,8 +78,7 @@ public class TahuEdgePayloadConverter implements 
HeaderFilterStrategyAware {
 
                 dataPayloadBuilder.setUuid(headerValue.toString());
 
-            } else if (headerValue instanceof Metric) {
-                Metric metricValue = (Metric) headerValue;
+            } else if (headerValue instanceof Metric metricValue) {
 
                 dataPayloadBuilder.addMetric(metricValue);
 

Reply via email to