mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
stable order of lookup element generation for java references (IDEA-88923)
This commit is contained in:
@@ -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);
|
||||
|
||||
+2
-2
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user