File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-cloud-commons/src/main/java/org/springframework/cloud/configuration Expand file tree Collapse file tree 1 file changed +3
-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}
You can’t perform that action at this time.
0 commit comments