From cdd77f2f330054ef87bd6f64654bf0ee729193a3 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Thu, 24 Oct 2024 11:40:01 -0400 Subject: [PATCH] Fixes for checkstyle --- .../cloud/vault/config/ClientAuthenticationFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/ClientAuthenticationFactory.java b/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/ClientAuthenticationFactory.java index 930d320e..6e039b21 100644 --- a/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/ClientAuthenticationFactory.java +++ b/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/ClientAuthenticationFactory.java @@ -20,6 +20,7 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; +import java.util.Locale; import java.util.concurrent.atomic.AtomicReference; import software.amazon.awssdk.auth.credentials.AwsCredentials; @@ -175,7 +176,7 @@ private AppIdUserIdMechanism getAppIdMechanism(VaultProperties.AppIdProperties a } catch (ClassNotFoundException ex) { - switch (appId.getUserId().toUpperCase()) { + switch (appId.getUserId().toUpperCase(Locale.ROOT)) { case VaultProperties.AppIdProperties.IP_ADDRESS: return new IpAddressUserId();