Skip to content

Commit

Permalink
Try fixing failing CI build.
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaMaciaszek committed Oct 18, 2024
1 parent 02fb33a commit f0e8886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package org.springframework.cloud.configuration;

import java.util.Locale;
import java.util.Map;

import org.springframework.core.io.Resource;
Expand Down Expand Up @@ -143,7 +144,7 @@ private String fileExtensionOf(Resource resource) {
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);
}

}
2 changes: 2 additions & 0 deletions src/checkstyle/checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit f0e8886

Please sign in to comment.