mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-145752 Annotation attribute value: irrelevant completion proposals for boolean attribute (basic completion)
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
@interface Foo {
|
||||
boolean foo();
|
||||
}
|
||||
|
||||
@Foo(foo=<caret>)
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
@interface Foo {
|
||||
MyEnum value();
|
||||
}
|
||||
enum MyEnum { x, y }
|
||||
|
||||
@Foo(<caret>)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
@interface Foo {
|
||||
int value();
|
||||
}
|
||||
|
||||
@Foo(<caret>)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
@interface Foo {
|
||||
Class attr();
|
||||
}
|
||||
|
||||
@Foo(attr = <caret>)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
@interface Foo {
|
||||
Class value();
|
||||
}
|
||||
|
||||
@Foo(<caret>)
|
||||
+7
-1
@@ -112,7 +112,13 @@ public class KeywordCompletionTest extends LightCompletionTestCase {
|
||||
selectItem(myItems[0], '!');
|
||||
checkResultByFile(BASE_PATH + "/" + getTestName(true) + "_after.java");
|
||||
}
|
||||
|
||||
|
||||
public void testNoPrimitivesInBooleanAnnotationAttribute() { doTest(1, "true", "int", "boolean"); }
|
||||
public void testNoPrimitivesInIntAnnotationValueAttribute() { doTest(0, "true", "int", "boolean"); }
|
||||
public void testNoPrimitivesInEnumAnnotationAttribute() { doTest(0, "true", "int", "boolean"); }
|
||||
public void testPrimitivesInClassAnnotationValueAttribute() { doTest(2, "true", "int", "boolean"); }
|
||||
public void testPrimitivesInClassAnnotationAttribute() { doTest(3, "true", "int", "boolean"); }
|
||||
|
||||
public void testImportStatic() throws Exception { doTest(1, "static"); }
|
||||
public void testAbstractInInterface() throws Exception { doTest(1, "abstract"); }
|
||||
public void testCharInAnnotatedParameter() throws Exception { doTest(1, "char"); }
|
||||
|
||||
Reference in New Issue
Block a user