diff --git a/spring-boot/src/main/java/org/springframework/boot/env/PropertySourcesLoader.java b/spring-boot/src/main/java/org/springframework/boot/env/PropertySourcesLoader.java index 6896ead19d..ff4fbd8e92 100644 --- a/spring-boot/src/main/java/org/springframework/boot/env/PropertySourcesLoader.java +++ b/spring-boot/src/main/java/org/springframework/boot/env/PropertySourcesLoader.java @@ -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 getAllFileExtensions() { - Set fileExtensions = new HashSet(); + Set fileExtensions = new LinkedHashSet(); for (PropertySourceLoader loader : this.loaders) { fileExtensions.addAll(Arrays.asList(loader.getFileExtensions())); }