java completion: suggest expected method type arguments (IDEA-166668)

This commit is contained in:
peter
2017-01-19 20:40:38 +01:00
parent 5081d7e302
commit b814473c58
4 changed files with 90 additions and 51 deletions
@@ -0,0 +1,11 @@
import java.util.*;
public class Usage {
private void demo() {
callme(Collections.<<caret>>emptyList());
}
private void callme(List<String> items) {
}
}
@@ -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')