mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
"initialize variable" & "initialize in constructor" suggests default constructors (with inheritor's if collection) (IDEA-145431)
This commit is contained in:
@@ -3,10 +3,10 @@ class A {
|
||||
private final int var;
|
||||
|
||||
private Main() {
|
||||
var = <caret><selection>0</selection>;
|
||||
var = 0;
|
||||
}
|
||||
|
||||
private Main(int var) {
|
||||
this.var = 0;
|
||||
}
|
||||
}
|
||||
}<caret>
|
||||
@@ -3,6 +3,6 @@ class A {
|
||||
private final int var;
|
||||
|
||||
private Main(int var) {
|
||||
this.var = <caret><selection>0</selection>;
|
||||
this.var = 0<caret>;
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,6 @@ class A {
|
||||
private final int var;
|
||||
|
||||
private Main() {
|
||||
var = <caret><selection>0</selection>;
|
||||
var = 0<caret>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user