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 0b3b7665751753894d5e672a47754d293f2b339e Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Tue Jan 27 06:06:34 2026 +0000 (chores): modernize instanceof checks in camel-hashicorp-vault --- .../hashicorp/vault/vault/HashicorpVaultReloadTriggerTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/vault/HashicorpVaultReloadTriggerTask.java b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/vault/HashicorpVaultReloadTriggerTask.java index bdf634f61980..da4be636d73c 100644 --- a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/vault/HashicorpVaultReloadTriggerTask.java +++ b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/vault/HashicorpVaultReloadTriggerTask.java @@ -121,8 +121,8 @@ public class HashicorpVaultReloadTriggerTask extends ServiceSupport implements C // auto-detect secrets in-use PropertiesComponent pc = camelContext.getPropertiesComponent(); PropertiesFunction pf = pc.getPropertiesFunction("hashicorp"); - if (pf instanceof HashicorpVaultPropertiesFunction) { - propertiesFunction = (HashicorpVaultPropertiesFunction) pf; + if (pf instanceof HashicorpVaultPropertiesFunction vaultPropertiesFunction) { + propertiesFunction = vaultPropertiesFunction; LOG.debug("Auto-detecting secrets from properties-function: {}", pf.getName()); } // specific secrets
