mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
smart completion of primitive and array type class object access (IDEA-72265)
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
class Bar {
|
||||
public static void main(String[] args) {
|
||||
Class<?> cls = byte[].class;<caret>
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class Bar {
|
||||
public static void main(String[] args) {
|
||||
Class<?> cls = byte[].<caret>
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Bar {
|
||||
@interface B {
|
||||
Class<?> value();
|
||||
}
|
||||
|
||||
@B(byte[].class<caret>)
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Bar {
|
||||
@interface B {
|
||||
Class<?> value();
|
||||
}
|
||||
|
||||
@B(byte[].<caret>)
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
|
||||
}
|
||||
+2
@@ -951,6 +951,8 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
|
||||
public void testStaticallyImportedField() throws Throwable { doTest(); }
|
||||
public void testSiblingOfAStaticallyImportedField() throws Throwable { doTest(); }
|
||||
public void testPrimitiveArrayClassInMethod() throws Throwable { doTest(); }
|
||||
public void testPrimitiveClassInAnno() throws Throwable { doTest(); }
|
||||
|
||||
public void testInferFromCall() throws Throwable {
|
||||
doTest();
|
||||
|
||||
Reference in New Issue
Block a user