mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
inline superclass: non empty super constructor - field initialization (IDEADEV-40788)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class Test {
|
||||
String s;
|
||||
|
||||
Test(String s){
|
||||
super(s);
|
||||
System.out.println("hello");
|
||||
}
|
||||
|
||||
void foo() {
|
||||
Test s = new Test(null);
|
||||
s.bar();
|
||||
}
|
||||
|
||||
void bar() {}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
class Super {
|
||||
String s;
|
||||
Super(String s) {
|
||||
if (s != null) {
|
||||
this.s = s;
|
||||
}
|
||||
}
|
||||
|
||||
void foo() {
|
||||
Super s = new Super(null);
|
||||
s.bar();
|
||||
}
|
||||
|
||||
void bar() {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class Test extends Super{
|
||||
Test(String s){
|
||||
super(s);
|
||||
System.out.println("hello");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user