IDEA-144532 "extends" keyword is not hinted correctly

This commit is contained in:
peter
2015-08-31 19:22:29 +02:00
parent 68634203e2
commit f482636569
3 changed files with 6 additions and 0 deletions
@@ -469,6 +469,9 @@ public class JavaKeywordCompletion {
if (referenceList != null && referenceList.getParent() instanceof PsiClass) {
psiClass = (PsiClass)referenceList.getParent();
}
else if (prevLeaf.getParent() instanceof PsiTypeParameterList && prevLeaf.getParent().getParent() instanceof PsiClass) {
psiClass = (PsiClass)prevLeaf.getParent().getParent();
}
}
if (psiClass != null) {
@@ -0,0 +1,2 @@
class A<T> <caret> {
}
@@ -64,6 +64,7 @@ public class KeywordCompletionTest extends LightCompletionTestCase {
public void testExtends11() throws Exception { doTest(false); }
public void testExtends12() throws Exception { doTest(false); }
public void testExtends13() throws Exception { doTest(false); }
public void testExtendsAfterClassGenerics() throws Exception { doTest(2, "extends", "implements"); }
public void testSynchronized1() throws Exception { doTest(false); }
public void testSynchronized2() throws Exception {