mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Change HashSet to LinkedHashSet to preserve order of file extensions
Fixes gh-4111
This commit is contained in:
parent
6ab376e2e8
commit
7b6de545e7
@ -18,7 +18,7 @@ package org.springframework.boot.env;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
@ -199,7 +199,7 @@ public class PropertySourcesLoader {
|
||||
* @return the file extensions
|
||||
*/
|
||||
public Set<String> getAllFileExtensions() {
|
||||
Set<String> fileExtensions = new HashSet<String>();
|
||||
Set<String> fileExtensions = new LinkedHashSet<String>();
|
||||
for (PropertySourceLoader loader : this.loaders) {
|
||||
fileExtensions.addAll(Arrays.asList(loader.getFileExtensions()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user