This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new dec9dc3f6fb 💄 [CAMEL-18282] Fix checkstyle errors dec9dc3f6fb is described below commit dec9dc3f6fbee56b900298280bdf248c7cc23cc0 Author: Croway <federico.mariani.1...@gmail.com> AuthorDate: Wed Jul 20 13:35:41 2022 +0200 💄 [CAMEL-18282] Fix checkstyle errors --- .../camel/component/azure/key/vault/KeyVaultPropertiesFunction.java | 2 +- .../component/hashicorp/vault/HashicorpVaultPropertiesFunction.java | 2 +- .../java/org/apache/camel/main/DefaultConfigurationConfigurer.java | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultPropertiesFunction.java b/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultPropertiesFunction.java index 506f4c3c203..8c3b91c89e9 100644 --- a/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultPropertiesFunction.java +++ b/components/camel-azure/camel-azure-key-vault/src/main/java/org/apache/camel/component/azure/key/vault/KeyVaultPropertiesFunction.java @@ -176,7 +176,7 @@ public class KeyVaultPropertiesFunction extends ServiceSupport implements Proper throws JsonProcessingException { String returnValue; try { - KeyVaultSecret secret = client.getSecret(key, (ObjectHelper.isNotEmpty(version) ? version : "")); + KeyVaultSecret secret = client.getSecret(key, ObjectHelper.isNotEmpty(version) ? version : ""); returnValue = secret.getValue(); if (ObjectHelper.isNotEmpty(subkey)) { ObjectMapper mapper = new ObjectMapper(); diff --git a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultPropertiesFunction.java b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultPropertiesFunction.java index cc5b589125f..f42b8b156c8 100644 --- a/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultPropertiesFunction.java +++ b/components/camel-hashicorp-vault/src/main/java/org/apache/camel/component/hashicorp/vault/HashicorpVaultPropertiesFunction.java @@ -82,7 +82,7 @@ public class HashicorpVaultPropertiesFunction extends ServiceSupport implements private CamelContext camelContext; private VaultTemplate client; - protected String engine; + private String engine; @Override protected void doStart() throws Exception { diff --git a/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java b/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java index bb09e1837a8..8439f092471 100644 --- a/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java +++ b/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java @@ -83,7 +83,11 @@ import org.apache.camel.support.SimpleUuidGenerator; import org.apache.camel.support.jsse.GlobalSSLContextParametersSupplier; import org.apache.camel.support.startup.LoggingStartupStepRecorder; import org.apache.camel.util.ObjectHelper; -import org.apache.camel.vault.*; +import org.apache.camel.vault.AwsVaultConfiguration; +import org.apache.camel.vault.AzureVaultConfiguration; +import org.apache.camel.vault.GcpVaultConfiguration; +import org.apache.camel.vault.HashicorpVaultConfiguration; +import org.apache.camel.vault.VaultConfiguration; import org.slf4j.Logger; import org.slf4j.LoggerFactory;