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 5e814e6203dc5fb42075062f2ddaacc58f871c71 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Fri Feb 6 13:14:07 2026 +0000 (chores): modernize instanceof checks in camel-hashicorp-vault --- .../org/apache/camel/component/hashicorp/vault/SecretsDevConsole.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/SecretsDevConsole.java b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/SecretsDevConsole.java index 83ee7e106ec9..2e17bf618d92 100644 --- a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/SecretsDevConsole.java +++ b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/SecretsDevConsole.java @@ -39,8 +39,8 @@ public class SecretsDevConsole extends AbstractDevConsole { if (getCamelContext().getPropertiesComponent().hasPropertiesFunction("hashicorp")) { PropertiesFunction pf = getCamelContext().getPropertiesComponent().getPropertiesFunction("hashicorp"); - if (pf instanceof HashicorpVaultPropertiesFunction) { - propertiesFunction = (HashicorpVaultPropertiesFunction) pf; + if (pf instanceof HashicorpVaultPropertiesFunction hvpf) { + propertiesFunction = hvpf; } } }
