Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Incorporated review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
szarnekow committed Aug 13, 2019
1 parent c630d2f commit f4156f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Expand Up @@ -349,8 +349,6 @@ public void testReexportedSource() throws Exception {
assertEquals(BuilderTestLanguagePackage.Literals.ELEMENT__REFERENCES,next.getEReference());
}

// TODO fix https://github.com/eclipse/xtext-eclipse/issues/400
// @Ignore("TODO fix https://github.com/eclipse/xtext-eclipse/issues/400")
@Test
public void testNewlyAddedReexportedSource() throws Exception {
IJavaProject foo = createJavaProject("foo");
Expand All @@ -373,8 +371,6 @@ public void testNewlyAddedReexportedSource() throws Exception {
assertEquals(0,countMarkers(bazFile));
}

// TODO fix https://github.com/eclipse/xtext-eclipse/issues/400
// @Ignore("TODO fix https://github.com/eclipse/xtext-eclipse/issues/400")
@Test
public void testReexportedJarRemoved() throws Exception {
IJavaProject foo = createJavaProject("foo");
Expand Down
Expand Up @@ -7,7 +7,9 @@
*******************************************************************************/
package org.eclipse.xtext.builder.impl;

import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;

import org.eclipse.core.resources.IFile;
Expand Down Expand Up @@ -370,7 +372,7 @@ protected boolean isValid(URI uri, IStorage storage) {
}

protected Set<IProject> getInterestingProjects(IProject project) throws CoreException {
Set<IProject> result = Sets.newHashSet(project.getReferencedProjects());
Set<IProject> result = new LinkedHashSet<>(Arrays.asList(project.getReferencedProjects()));
contribution.addInterestingProjects(project, result);
return result;
}
Expand Down
Expand Up @@ -66,7 +66,7 @@ public void elementChanged(ElementChangedEvent event) {
.filter(Predicates.notNull())
.transform(IJavaProject::getProject).toSet();
dirtyStateManager.notifyListeners(new CoarseGrainedChangeEvent());
Set<IProject> mutableProjects = Sets.newHashSet(projects);
Set<IProject> mutableProjects = Sets.newLinkedHashSet(projects);
for(IProject project: projects) {
mutableProjects.addAll(projectDependencyGraph.getDependentXtextProjects(project));
}
Expand Down
Expand Up @@ -31,7 +31,7 @@ public void putDependency(IProject project, Set<IProject> dependsOn) {
}

public Set<IProject> getDependentXtextProjects(IProject project) {
Set<IProject> result = Sets.newHashSet();
Set<IProject> result = Sets.newLinkedHashSet();
for(Map.Entry<IProject, Set<IProject>> entry: dependencies.entrySet()) {
if (entry.getValue().contains(project)) {
result.add(entry.getKey());
Expand Down

0 comments on commit f4156f7

Please sign in to comment.