pull up: move field initialization block if possible (IDEADEV-40576)

This commit is contained in:
anna
2009-10-08 19:56:56 +04:00
parent 6a43ae3260
commit 6400ea7cb0
16 changed files with 309 additions and 68 deletions

View File

@@ -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();
}
}