Skip to content

Commit b850d6e

Browse files
committed
fix brittle test that relies on order
1 parent f69e83d commit b850d6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plexus-java/src/main/java/org/codehaus/plexus/languages/java/jpms/LocationManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ public String extract(Path path) throws IOException {
250250
request.isIncludeStatic());
251251
}
252252

253-
Map<T, JavaModuleDescriptor> definedModules = new HashMap<>();
254-
Map<T, JavaModuleDescriptor> automaticModules = new HashMap<>();
253+
Map<T, JavaModuleDescriptor> definedModules = new LinkedHashMap<>();
254+
Map<T, JavaModuleDescriptor> automaticModules = new LinkedHashMap<>();
255255

256256
pathElements.forEach((k, v) -> {
257257
if (v != null && !v.isAutomatic()) {

0 commit comments

Comments
 (0)