stable order of lookup element generation for java references (IDEA-88923)

This commit is contained in:
peter
2012-07-17 18:54:48 +02:00
parent a7b73413b0
commit a0b3975b19
2 changed files with 3 additions and 3 deletions
@@ -418,7 +418,7 @@ public class JavaCompletionUtil {
public static Set<LookupElement> processJavaReference(PsiElement element, PsiJavaReference javaReference, ElementFilter elementFilter,
final boolean checkAccess, boolean filterStaticAfterInstance, final PrefixMatcher matcher, CompletionParameters parameters) {
final THashSet<LookupElement> set = new THashSet<LookupElement>();
final Set<LookupElement> set = new LinkedHashSet<LookupElement>();
final Condition<String> nameCondition = new Condition<String>() {
public boolean value(String s) {
return matcher.prefixMatches(s);
@@ -261,8 +261,8 @@ public class JavaCompletionProcessor extends BaseScopeProcessor implements Eleme
}
}
public Set<CompletionElement> getResults(){
return new THashSet<CompletionElement>(myResults);
public Iterable<CompletionElement> getResults(){
return myResults;
}
public void clear() {