Skip to content

Commit 10ff918

Browse files
committed
Preserve original resource order
1 parent f0f2fd5 commit 10ff918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

junit-platform-launcher/src/main/java/org/junit/platform/launcher/core/LauncherConfigurationParameters.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import java.net.URL;
1515
import java.net.URLConnection;
1616
import java.util.Collections;
17-
import java.util.HashSet;
17+
import java.util.LinkedHashSet;
1818
import java.util.Map;
1919
import java.util.Optional;
2020
import java.util.Properties;
@@ -53,7 +53,7 @@ private static Properties fromClasspathResource(String configFileName) {
5353

5454
try {
5555
ClassLoader classLoader = ClassLoaderUtils.getDefaultClassLoader();
56-
Set<URL> resources = new HashSet<>(Collections.list(classLoader.getResources(configFileName)));
56+
Set<URL> resources = new LinkedHashSet<>(Collections.list(classLoader.getResources(configFileName)));
5757

5858
if (!resources.isEmpty()) {
5959
if (resources.size() > 1) {

0 commit comments

Comments
 (0)