mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java completion: suggest expected method type arguments (IDEA-166668)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import java.util.*;
|
||||
|
||||
public class Usage {
|
||||
private void demo() {
|
||||
callme(Collections.<<caret>>emptyList());
|
||||
}
|
||||
|
||||
private void callme(List<String> items) {
|
||||
}
|
||||
|
||||
}
|
||||
+4
@@ -705,6 +705,10 @@ class ContainerUtil extends ContainerUtilRt {
|
||||
assert LookupElementPresentation.renderElement(myFixture.lookupElements[1]).tailText.contains('pack2')
|
||||
}
|
||||
|
||||
void testPreferExpectedMethodTypeArg() {
|
||||
checkPreferredItems 0, 'String'
|
||||
}
|
||||
|
||||
void testMethodStatisticsPerQualifierType() {
|
||||
checkPreferredItems 0, 'charAt'
|
||||
myFixture.type('eq\n);\n')
|
||||
|
||||
Reference in New Issue
Block a user