mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-181266 Modifiers are not suggested after annotation with parentheses
This commit is contained in:
@@ -588,7 +588,7 @@ public class JavaKeywordCompletion {
|
||||
if (psiElement().withoutText(".").inside(
|
||||
psiElement(PsiModifierList.class).withParent(
|
||||
not(psiElement(PsiParameter.class)).andNot(psiElement(PsiParameterList.class)))).accepts(prev) &&
|
||||
!psiElement().inside(PsiAnnotationParameterList.class).accepts(prev)) {
|
||||
(!psiElement().inside(PsiAnnotationParameterList.class).accepts(prev) || prev.textMatches(")"))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class C {
|
||||
@Deprecated() <caret>
|
||||
}
|
||||
+1
@@ -56,6 +56,7 @@ public class KeywordCompletionTest extends LightCompletionTestCase {
|
||||
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 testAfterAnnotationsWithParamsInClass() { doTest(7, "public", "private", "final", "class", "interface", "abstract", "enum"); }
|
||||
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"); }
|
||||
|
||||
Reference in New Issue
Block a user