mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
java: don't complete non-annotation-methods inside incorrect annotation
This commit is contained in:
@@ -594,7 +594,7 @@ public class JavaCompletionContributor extends CompletionContributor {
|
||||
addAllClasses(parameters, result, new JavaCompletionSession(result));
|
||||
}
|
||||
|
||||
if (annoClass != null) {
|
||||
if (annoClass != null && annoClass.isAnnotationType()) {
|
||||
final PsiNameValuePair[] existingPairs = parameterList.getAttributes();
|
||||
|
||||
methods: for (PsiMethod method : annoClass.getMethods()) {
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
class X {
|
||||
@String(<caret>)
|
||||
}
|
||||
@@ -1844,4 +1844,6 @@ class Bar {{
|
||||
assert myFixture.lookupElementStrings == null
|
||||
}
|
||||
|
||||
void testNoNonAnnotationMethods() { doAntiTest() }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user