mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JPS: return modules and libraries from dependencies in proper order (IDEA-122154)
This commit is contained in:
+3
-3
@@ -25,7 +25,7 @@ import org.jetbrains.jps.model.library.JpsLibrary;
|
||||
import org.jetbrains.jps.model.module.*;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
@@ -91,7 +91,7 @@ public abstract class JpsDependenciesEnumeratorBase<Self extends JpsDependencies
|
||||
@NotNull
|
||||
@Override
|
||||
public Set<JpsModule> getModules() {
|
||||
Set<JpsModule> result = new HashSet<JpsModule>();
|
||||
Set<JpsModule> result = new LinkedHashSet<JpsModule>();
|
||||
processModules(new CollectConsumer<JpsModule>(result));
|
||||
return result;
|
||||
}
|
||||
@@ -178,7 +178,7 @@ public abstract class JpsDependenciesEnumeratorBase<Self extends JpsDependencies
|
||||
@NotNull
|
||||
@Override
|
||||
public Set<JpsLibrary> getLibraries() {
|
||||
Set<JpsLibrary> libraries = new HashSet<JpsLibrary>();
|
||||
Set<JpsLibrary> libraries = new LinkedHashSet<JpsLibrary>();
|
||||
processLibraries(new CollectConsumer<JpsLibrary>(libraries));
|
||||
return libraries;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user