mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-49556 - CCE: ExpectedTypesProvider$MyParentVisitor.visitAnnotationArrayInitializer
This commit is contained in:
@@ -282,7 +282,10 @@ public class ExpectedTypesProvider {
|
||||
}
|
||||
|
||||
@Override public void visitAnnotationArrayInitializer(@NotNull PsiArrayInitializerMemberValue initializer) {
|
||||
final PsiElement parent = initializer.getParent();
|
||||
PsiElement parent = initializer.getParent();
|
||||
while (parent instanceof PsiArrayInitializerMemberValue) {
|
||||
parent = parent.getParent();
|
||||
}
|
||||
final PsiType type;
|
||||
if (parent instanceof PsiNameValuePair) {
|
||||
type = getAnnotationMethodType((PsiNameValuePair)parent);
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
@SuppressWarnings(value = { { <caret>"UnusedDeclaration"}, })
|
||||
private static void test() {}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
@SuppressWarnings(value = { { <caret>"UnusedDeclaration"}, })
|
||||
private static void test() {}
|
||||
}
|
||||
|
||||
+2
@@ -643,6 +643,8 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
|
||||
//todo 2nd completion
|
||||
public void _testDefaultAnnoParam2() throws Throwable { doTest(); }
|
||||
|
||||
public void testAnnotationValue() throws Throwable {doTest(); }
|
||||
|
||||
public void testLiveTemplate() throws Throwable {
|
||||
final Template template = TemplateManager.getInstance(getProject()).createTemplate("foo", "zzz");
|
||||
|
||||
Reference in New Issue
Block a user