mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-89114 Unsuitable completion proposals in annotation attribute value
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
public class Util {
|
||||
@Foo(val=<caret>) void foo(String[] args) { }
|
||||
}
|
||||
+14
@@ -270,6 +270,20 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
|
||||
assert "B" in myFixture.lookupElementStrings
|
||||
}
|
||||
|
||||
public void testAnnoParameterValue() throws Exception {
|
||||
configure()
|
||||
def strings = myFixture.lookupElementStrings
|
||||
assert 'AssertionError' in strings
|
||||
assert !('enum' in strings)
|
||||
assert !('final' in strings)
|
||||
assert !('equals' in strings)
|
||||
assert !('new' in strings)
|
||||
assert !('null' in strings)
|
||||
assert !('public' in strings)
|
||||
assert !('super' in strings)
|
||||
assert !('null' in strings)
|
||||
}
|
||||
|
||||
public void testAfterInstanceof() throws Exception {
|
||||
configureByFile("AfterInstanceof.java");
|
||||
assert "A" in myFixture.lookupElementStrings
|
||||
|
||||
Reference in New Issue
Block a user