Skip to content

Commit 3cb5714

Browse files
committed
fix
Signed-off-by: wind57 <eugen.rabii@gmail.com>
1 parent bb0c35d commit 3cb5714

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/CommonPropertySourceLocator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import java.util.Collection;
2020
import java.util.HashSet;
21+
import java.util.LinkedHashSet;
2122
import java.util.List;
2223
import java.util.Locale;
2324
import java.util.Set;
@@ -57,7 +58,7 @@ public PropertySource<?> locate(Environment environment) {
5758
if (environment instanceof ConfigurableEnvironment env) {
5859

5960
List<NormalizedSource> sources = properties.determineSources(sourceType, environment);
60-
Set<NormalizedSource> uniqueSources = new HashSet<>(sources);
61+
Set<NormalizedSource> uniqueSources = new LinkedHashSet<>(sources);
6162
LOG.debug(sourceType.name() + " normalized sources : " + uniqueSources);
6263
CompositePropertySource composite = new CompositePropertySource(
6364
"composite-" + sourceType.name().toLowerCase(Locale.ROOT));

0 commit comments

Comments
 (0)