File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
spring-cloud-commons/src/main/java/org/springframework/cloud/configuration Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2017-2020 the original author or authors.
2+ * Copyright 2017-2024 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1616
1717package org .springframework .cloud .configuration ;
1818
19+ import java .util .Locale ;
1920import java .util .Map ;
2021
2122import org .springframework .core .io .Resource ;
@@ -143,7 +144,7 @@ private String fileExtensionOf(Resource resource) {
143144 String name = resource .getFilename ();
144145 int index = name .lastIndexOf ('.' );
145146
146- return index < 0 ? "" : name .substring (index + 1 ).toLowerCase ();
147+ return index < 0 ? "" : name .substring (index + 1 ).toLowerCase (Locale . ROOT );
147148 }
148149
149150}
Original file line number Diff line number Diff line change 2222 <suppress files =" .*AutoConfiguration.*" checks =" HideUtilityClassConstructor" />
2323 <suppress files =" .*AutoConfiguration.*" checks =" FinalClass" />
2424 <suppress files =" .*ReactiveDiscoveryClient.*" checks =" JavadocVariable" />
25+ <suppress files =" [\\/]src[\\/](test|testFixtures)[\\/](java|java21)[\\/]" checks =" RegexpSinglelineJava" id =" toLowerCaseWithoutLocale" />
26+ <suppress files =" [\\/]src[\\/](test|testFixtures)[\\/](java|java21)[\\/]" checks =" RegexpSinglelineJava" id =" toUpperCaseWithoutLocale" />
2527</suppressions >
You can’t perform that action at this time.
0 commit comments