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

This commit is contained in:
anna
2009-10-08 20:50:58 +04:00
parent 6a43ae3260
commit 6400ea7cb0
16 changed files with 309 additions and 68 deletions
@@ -0,0 +1,19 @@
public class Sup {
}
class ExtractSuperClass extends Sup {
private final String <caret>field;
public ExtractSuperClass() {
try {
field = (String)"text";
}
catch (RuntimeException e) {
throw new RuntimeException();
}
}
}