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:38 UTC
(camel) 07/23: (chores): modernize instanceof checks in camel-hashicorp-vault
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 <an...@gmail.com>
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;
}
}
}