Merge branch '1.2.x'

pull/4120/head
Dave Syer 9 years ago
commit e26a4c5347

@ -18,7 +18,7 @@ package org.springframework.boot.env;
import java.io.IOException; import java.io.IOException;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashSet; import java.util.LinkedHashSet;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
@ -199,7 +199,7 @@ public class PropertySourcesLoader {
* @return the file extensions * @return the file extensions
*/ */
public Set<String> getAllFileExtensions() { public Set<String> getAllFileExtensions() {
Set<String> fileExtensions = new HashSet<String>(); Set<String> fileExtensions = new LinkedHashSet<String>();
for (PropertySourceLoader loader : this.loaders) { for (PropertySourceLoader loader : this.loaders) {
fileExtensions.addAll(Arrays.asList(loader.getFileExtensions())); fileExtensions.addAll(Arrays.asList(loader.getFileExtensions()));
} }

Loading…
Cancel
Save