mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
add single static import on type elements, e.g. inside annotations, type elements (IDEA-22130)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Add static import for 'test.Bar.Foo'" "true"
|
||||
package test;
|
||||
|
||||
import static test.Bar.Foo;
|
||||
|
||||
class Bar {
|
||||
public static class Foo {}
|
||||
}
|
||||
public class OOO{
|
||||
{
|
||||
Foo foo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Add static import for 'test.Bar.Foo'" "true"
|
||||
package test;
|
||||
|
||||
import static test.Bar.Foo;
|
||||
|
||||
class Bar {
|
||||
public static @interface Foo {}
|
||||
}
|
||||
@Foo
|
||||
public class OOO {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Add static import for 'test.Bar.Foo'" "true"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
public static class Foo {}
|
||||
}
|
||||
public class OOO{
|
||||
{
|
||||
Bar.<caret>Foo foo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Add static import for 'test.Bar.Foo'" "true"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
public static @interface Foo {}
|
||||
}
|
||||
@Bar.<caret>Foo
|
||||
public class OOO {
|
||||
}
|
||||
Reference in New Issue
Block a user