Try fixing failing CI build.

This commit is contained in:
Olga Maciaszek-Sharma
2024-10-18 13:47:47 +02:00
parent 02fb33a67b
commit f0e888634d
2 changed files with 4 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
package org.springframework.cloud.configuration;
import java.util.Locale;
import java.util.Map;
import org.springframework.core.io.Resource;
@@ -143,7 +144,7 @@ public class TlsProperties {
String name = resource.getFilename();
int index = name.lastIndexOf('.');
return index < 0 ? "" : name.substring(index + 1).toLowerCase();
return index < 0 ? "" : name.substring(index + 1).toLowerCase(Locale.ROOT);
}
}

View File

@@ -22,4 +22,6 @@
<suppress files=".*AutoConfiguration.*" checks="HideUtilityClassConstructor"/>
<suppress files=".*AutoConfiguration.*" checks="FinalClass"/>
<suppress files=".*ReactiveDiscoveryClient.*" checks="JavadocVariable"/>
<suppress files="[\\/]src[\\/](test|testFixtures)[\\/](java|java21)[\\/]" checks="RegexpSinglelineJava" id="toLowerCaseWithoutLocale"/>
<suppress files="[\\/]src[\\/](test|testFixtures)[\\/](java|java21)[\\/]" checks="RegexpSinglelineJava" id="toUpperCaseWithoutLocale"/>
</suppressions>