java.util.HashSetjava.util.LinkedHashSet



Project JetBrains/intellij-community in file ...impl.packagingCompiler.DependentJarsEvaluator.java (2007-07-27)
@@ -6,14 +6,14 @@ package com.intellij.compiler.impl.packagingCompiler;
 
 import com.intellij.openapi.util.Pair;
 
+import java.util.LinkedHashSet;
 import java.util.Set;
-import java.util.HashSet;
 
 /**
  * @author nik
  */
 public class DependentJarsEvaluator {
-  private Set<JarInfo> myJars = new HashSet<JarInfo>();
+  private Set<JarInfo> myJars = new LinkedHashSet<JarInfo>();
 
   public void addJarWithDependencies(final JarInfo jarInfo) {
     if (myJars.add(jarInfo)) {
Project JetBrains/intellij-community in file ...rc.com.intellij.ide.actions.OpenProjectAction.java (2011-11-08)
@@ -37,7 +37,7 @@ import com.intellij.util.Consumer;
 
 import java.io.File;
 import java.util.Collections;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
 import java.util.Set;
 
 public class OpenProjectAction extends AnAction implements DumbAware {
@@ -46,7 +46,7 @@ public class OpenProjectAction extends AnAction implements DumbAware {
 
     final FileChooserDescriptor descriptor = new OpenProjectFileChooserDescriptor(true);
     descriptor.setTitle(IdeBundle.message("title.open.project"));
-    final Set<String> extensions = new HashSet<String>();
+    final Set<String> extensions = new LinkedHashSet<String>();
     extensions.add(ProjectFileType.DOT_DEFAULT_EXTENSION);
     final ProjectOpenProcessor[] openProcessors = Extensions.getExtensions(ProjectOpenProcessor.EXTENSION_POINT_NAME);
     for (ProjectOpenProcessor openProcessor : openProcessors) {
Project JetBrains/intellij-community in file ...680/compiler.impl.com.intellij.compiler.Chunk.java (2006-08-22)
@@ -4,7 +4,7 @@
  */
 package com.intellij.compiler;
 
-import java.util.HashSet;
+import java.util.LinkedHashSet;
 import java.util.Set;
 
 /**
@@ -15,7 +15,7 @@ public class Chunk<Node> {
   private final Set<Node> myNodes;
 
   public Chunk(Node node) {
-    this(new HashSet<Node>());
+    this(new LinkedHashSet<Node>());
     myNodes.add(node);
   }
   
Project JetBrains/intellij-community in file ...lij.openapi.vcs.changes.IgnoredFilesComponent.java (2010-09-07)
@@ -23,7 +23,7 @@ import com.intellij.openapi.vfs.newvfs.events.VFileEvent;
 import org.jetbrains.annotations.NotNull;
 
 import java.util.Collections;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
 import java.util.List;
 import java.util.Set;
 
@@ -33,7 +33,7 @@ public class IgnoredFilesComponent {
 
   public IgnoredFilesComponent(final Project project) {
     myProject = project;
-    myFilesToIgnore = new HashSet<IgnoredFileBean>();
+    myFilesToIgnore = new LinkedHashSet<IgnoredFileBean>();
 
     project.getMessageBus().connect().subscribe(VirtualFileManager.VFS_CHANGES, new BulkFileListener() {
       public void before(List<? extends VFileEvent> events) {}
Project JetBrains/intellij-community in file ...ramework.sm.runner.ui.SMTestRunnerResultsForm.java (2009-09-11)
@@ -32,9 +32,9 @@ import java.awt.*;
 import java.awt.event.InputEvent;
 import java.awt.event.KeyEvent;
 import java.util.ArrayList;
+import java.util.LinkedHashSet;
 import java.util.List;
 import java.util.Set;
-import java.util.HashSet;
 
 /**
  * @author: Roman Chernyatchik
@@ -68,7 +68,7 @@ public class SMTestRunnerResultsForm extends TestResultsPanel implements TestFra
 
   // custom progress
   private String myCurrentCustomProgressCategory;
-  private Set<String> myMentionedCategories = new HashSet<String>();
+  private Set<String> myMentionedCategories = new LinkedHashSet<String>();
 
   public SMTestRunnerResultsForm(final RunConfigurationBase runConfiguration,
                                  @NotNull final JComponent console,