mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
add static import: remove qualifier in case of inheritance (IDEA-155419)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// "Add static import for 'test.StaticImport.v'" "true"
|
||||
package test;
|
||||
|
||||
import static test.StaticImport.v;
|
||||
|
||||
class StaticImport {
|
||||
static String v = "123";
|
||||
|
||||
|
||||
}
|
||||
|
||||
class Child extends StaticImport {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(v);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// "Add static import for 'test.StaticImport.v'" "true"
|
||||
package test;
|
||||
|
||||
class StaticImport {
|
||||
static String v = "123";
|
||||
|
||||
|
||||
}
|
||||
|
||||
class Child extends StaticImport {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(StaticImport.<caret>v);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user