Files
openide/java/java-tests/testData/refactoring/extractMethodNew/DontExtractFieldWithConstructor_after.java
Alexandr Suhinin 61656c4437 extract constructor: dont assign to field
GitOrigin-RevId: a8b0318c61e543511cd42528cea239f21e03d461
2020-04-02 12:03:01 +00:00

15 lines
203 B
Java

class C {
final int x1;
int x2;
public C(int x1, int x2) {
this(x1);
this.x2 = x2;
}
private C(int x1) {
System.out.println();
this.x1 = x1;
}
}