mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
pull up: move field initialization block if possible (IDEADEV-40576)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
public class Sup {
|
||||
|
||||
protected final String field;
|
||||
|
||||
public Sup() {
|
||||
try {
|
||||
field = (String)"text";
|
||||
}
|
||||
catch (RuntimeException e) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class ExtractSuperClass extends Sup {
|
||||
|
||||
public ExtractSuperClass() {
|
||||
super();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user