From 608c99b85f36462d0bb1f681fa2018bf24118d34 Mon Sep 17 00:00:00 2001 From: Stefan Schultz <28778796+itsmestefanjay@users.noreply.github.com> Date: Mon, 11 Nov 2024 17:42:32 +0100 Subject: [PATCH] fix imports, return immutable empty map --- .../secrets/provider/kv/GenericKeyValueVaultSecretService.java | 1 - .../provider/kv/VersionedKeyValueVaultSecretService.java | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); } }