diff --git a/src/main/java/com/consid/bpm/camunda/secrets/provider/kv/GenericKeyValueVaultSecretService.java b/src/main/java/com/consid/bpm/camunda/secrets/provider/kv/GenericKeyValueVaultSecretService.java index 8096046..ec80f3a 100644 --- a/src/main/java/com/consid/bpm/camunda/secrets/provider/kv/GenericKeyValueVaultSecretService.java +++ b/src/main/java/com/consid/bpm/camunda/secrets/provider/kv/GenericKeyValueVaultSecretService.java @@ -4,7 +4,6 @@ import lombok.Getter; import lombok.extern.slf4j.Slf4j; import org.springframework.vault.core.VaultTemplate; -import org.springframework.vault.support.VaultResponse; import java.util.Collections; import java.util.Map; diff --git a/src/main/java/com/consid/bpm/camunda/secrets/provider/kv/VersionedKeyValueVaultSecretService.java b/src/main/java/com/consid/bpm/camunda/secrets/provider/kv/VersionedKeyValueVaultSecretService.java index 13022e8..67a4a0b 100644 --- a/src/main/java/com/consid/bpm/camunda/secrets/provider/kv/VersionedKeyValueVaultSecretService.java +++ b/src/main/java/com/consid/bpm/camunda/secrets/provider/kv/VersionedKeyValueVaultSecretService.java @@ -6,6 +6,7 @@ import org.springframework.vault.core.VaultVersionedKeyValueTemplate; import org.springframework.vault.support.Versioned; +import java.util.Collections; import java.util.Map; import java.util.Optional; @@ -45,6 +46,6 @@ private Map readSecretsFromVault() { } catch (IllegalStateException e) { log.debug("Cannot find secrets in path {}", path); } - return Map.of(); + return Collections.emptyMap(); } }