complete java class keywords after top-level annotation

regression after IDEA-CR-25484
This commit is contained in:
peter
2017-10-13 13:32:10 +02:00
parent 5ff62b9611
commit ceb018b369
3 changed files with 6 additions and 0 deletions
@@ -592,6 +592,10 @@ public class JavaKeywordCompletion {
return true;
}
if (psiElement().withParents(PsiErrorElement.class, PsiFile.class).accepts(position)) {
return true;
}
return isEndOfBlock(position);
}
@@ -0,0 +1 @@
@Deprecated() <caret>
@@ -55,6 +55,7 @@ public class KeywordCompletionTest extends LightCompletionTestCase {
public void testClassScope4() { doTest(10, CLASS_SCOPE_KEYWORDS_2); }
public void testInterfaceScope() { setLanguageLevel(LanguageLevel.JDK_1_8); doTest(8, INTERFACE_SCOPE_KEYWORDS); }
public void testAfterAnnotations() { doTest(6, "public", "final", "class", "interface", "abstract", "enum", null); }
public void testAfterAnnotationsWithParams() { doTest(6, "public", "final", "class", "interface", "abstract", "enum", null); }
public void testExtends1() { doTest(2, "extends", "implements", null); }
public void testExtends2() { doTest(1, "extends", "implements", "AAA", "BBB", "instanceof"); }
public void testExtends3() { doTest(2, "extends", "implements", "AAA", "BBB", "CCC", "instanceof"); }