mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-18 14:04:07 +07:00
pull up: move field initialization block if possible (IDEADEV-40576)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
public class A {
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
final String <caret>f;
|
||||
final String foo;
|
||||
|
||||
B(String fi, String foo) {
|
||||
this.foo = foo;
|
||||
if (fi == foo) {
|
||||
f = foo;
|
||||
} else {
|
||||
f = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user