java.util.LinkedHashSet



Project JetBrains/intellij-community in file ...ovy.refactoring.introduce.GrInplaceIntroducer.java (2013-07-19)
@@ -24,6 +24,7 @@ import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrVariable;
 
+import java.util.LinkedHashSet;
 import java.util.List;
 
 /**
@@ -51,4 +52,6 @@ public abstract class GrInplaceIntroducer extends InplaceVariableIntroducer<PsiE
   protected GrVariable getVariable() {
     return (GrVariable)super.getVariable();
   }
+
+  public abstract LinkedHashSet<String> suggestNames(GrIntroduceContext context);
 }
Project JetBrains/intellij-community in file ...ellij.ide.util.AbstractTreeClassChooserDialog.java (2012-10-25)
@@ -65,6 +65,7 @@ import java.awt.event.KeyAdapter;
 import java.awt.event.KeyEvent;
 import java.awt.event.MouseEvent;
 import java.util.ArrayList;
+import java.util.LinkedHashSet;
 import java.util.List;
 import java.util.Set;
 
@@ -288,7 +289,7 @@ public abstract class AbstractTreeClassChooserDialog<T extends PsiNamedElement>
   }
 
   private Set<Object> doFilter(Set<Object> elements) {
-    Set<Object> result = new HashSet<Object>();
+    Set<Object> result = new LinkedHashSet<Object>();
     for (Object o : elements) {
       if (myElementClass.isInstance(o) && getFilter().isAccepted((T)o)) {
         result.add(o);
Project JetBrains/intellij-community in file ...3/source.com.intellij.usageView.UsageViewUtil.java (2006-09-06)
@@ -20,6 +20,7 @@ import gnu.trove.THashSet;
 
 import java.util.Arrays;
 import java.util.Set;
+import java.util.LinkedHashSet;
 
 /**
  *
@@ -252,7 +253,7 @@ public class UsageViewUtil {
   }
 
   public static UsageInfo[] removeDuplicatedUsages(UsageInfo[] usages) {
-    Set<UsageInfo> set = new THashSet<UsageInfo>(Arrays.asList(usages));
+    Set<UsageInfo> set = new LinkedHashSet<UsageInfo>(Arrays.asList(usages));
     return set.toArray(new UsageInfo[set.size()]);
   }
 }
\ No newline at end of file
Project SonarSource/sonarqube in file ...ava.org.sonar.api.issue.internal.DefaultIssue.java (2014-12-18)
@@ -44,6 +44,7 @@ import java.util.Calendar;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Date;
+import java.util.LinkedHashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -599,7 +600,7 @@ public class DefaultIssue implements Issue {
   }
 
   public DefaultIssue setTags(Collection<String> tags) {
-    this.tags = ImmutableSet.copyOf(tags);
+    this.tags = new LinkedHashSet<String>(tags);
     return this;
   }
 }
Project SpringSource/spring-framework in file ...ringframework.mock.web.MockHttpServletRequest.java (2013-01-30)
@@ -30,6 +30,7 @@ import java.util.Date;
 import java.util.Enumeration;
 import java.util.HashSet;
 import java.util.LinkedHashMap;
+import java.util.LinkedHashSet;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Locale;
@@ -294,7 +295,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
 
 	public Enumeration<String> getAttributeNames() {
 		checkActive();
-		return Collections.enumeration(this.attributes.keySet());
+		return Collections.enumeration(new LinkedHashSet<String>(this.attributes.keySet()));
 	}
 
 	public String getCharacterEncoding() {