Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/4.1.x' into 4.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaMaciaszek committed Oct 17, 2024
2 parents ac91cf7 + e01fa19 commit 9f01ddd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017-2020 the original author or authors.
* Copyright 2017-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -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);
}

}

0 comments on commit 9f01ddd

Please sign in to comment.