mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-15 11:58:18 +07:00
java completion: sort/filter suggestions after :: by their matching to the expected type (IDEA-166673)
GitOrigin-RevId: adaefc912e115826280976b23adee38483ca1f71
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e3489f3445
commit
b9525d143e
@@ -1,7 +1,7 @@
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
void aaa(Test p) { return 1; }
|
||||
int aaa(Test p) { return 1; }
|
||||
void test() {
|
||||
Comparator<Test> r2 = Test::<caret>
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
void aaa(Test p) { return 1; }
|
||||
int aaa(Test p) { return 1; }
|
||||
void test() {
|
||||
Comparator<Test> r2 = Test::test;
|
||||
Comparator<Test> r2 = Test::aaa;<caret>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ class Bar {
|
||||
|
||||
class Test88 {
|
||||
void foo(Foo9 foo) {
|
||||
foo(Bar::new<caret>);
|
||||
foo(Bar::new);<caret>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,6 +8,6 @@ class Test {
|
||||
}
|
||||
|
||||
{
|
||||
I i = Test::aa
|
||||
I i = Test::aa;<caret>
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class NewCompletion {
|
||||
private static void vdf(java.util.function.Supplier<java.util.ArrayList<Integer>> supplier) {
|
||||
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
vdf(java.util.ArrayList::<caret>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user