mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
inline this() as method inside the constructor for non chained constructors (IDEA-87111)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
public class InlineThis {
|
||||
public InlineThis() {
|
||||
System.out.println("code block here");
|
||||
}
|
||||
|
||||
public InlineThis(String str) {
|
||||
this();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
InlineThis aInlineThis = new InlineThis();
|
||||
InlineThis aInlineThis1 = new InlineThis();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user