You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2026/02/06 14:43:45 UTC
(camel) 14/23: (chores): modernize instanceof checks in camel-tahu
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 <an...@gmail.com>
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);