Skip to content

Commit 8290019

Browse files
Use toLowerCase(Locale.ROOT) to avoid lowercase capital I (#18)
1 parent 38dc293 commit 8290019

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

polaris-core/src/main/java/io/polaris/core/storage/PolarisStorageConfigurationInfo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import io.polaris.core.storage.azure.AzureStorageConfigurationInfo;
3333
import io.polaris.core.storage.gcp.GcpStorageConfigurationInfo;
3434
import java.util.List;
35+
import java.util.Locale;
3536
import java.util.Optional;
3637
import org.jetbrains.annotations.NotNull;
3738
import org.slf4j.Logger;
@@ -187,7 +188,7 @@ public static Optional<PolarisStorageConfigurationInfo> forEntityPath(
187188

188189
/** Validate if the provided allowed locations are valid for the storage type */
189190
protected void validatePrefixForStorageType(String loc) {
190-
if (!loc.toLowerCase().startsWith(storageType.prefix)) {
191+
if (!loc.toLowerCase(Locale.ROOT).startsWith(storageType.prefix)) {
191192
throw new IllegalArgumentException(
192193
String.format(
193194
"Location prefix not allowed: '%s', expected prefix: '%s'", loc, storageType.prefix));

0 commit comments

Comments
 (0)