mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
completion: don't suggest java classes after wildcard
This commit is contained in:
@@ -250,6 +250,7 @@ public class JavaCompletionContributor extends CompletionContributor {
|
||||
PsiElement parent = position.getParent();
|
||||
|
||||
if (new JavaKeywordCompletion(parameters, session).addWildcardExtendsSuper(result, position)) {
|
||||
result.stopHere();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
class MyClass {
|
||||
|
||||
private static final Map<Class<?>, String> schemes = new HashMap<Class<?<caret>>, String>();
|
||||
}
|
||||
+5
@@ -186,6 +186,11 @@ public class KeywordCompletionTest extends LightCompletionTestCase {
|
||||
testByCount(1, "package");
|
||||
}
|
||||
|
||||
public void testAfterWildcard() {
|
||||
configureByTestName();
|
||||
assertStringItems("extends", "super");
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
configureByTestName();
|
||||
checkResultByTestName();
|
||||
|
||||
Reference in New Issue
Block a user