Files
openide/java/java-tests/testData/refactoring/replaceConstructorWithFactory/afterWithSelection.java
Tagir Valeev 8e57917700 [mod-commands] Rename: clear selection before the rename. Otherwise, renamer tries to rename the selected symbol instead
Fixes IDEA-335357 Replace constructor with factory method renames also constructor

GitOrigin-RevId: 93b5b9a8bcaabdb99796222b29449780dab7558a
2023-11-29 11:44:41 +00:00

17 lines
222 B
Java

public class Main {
private String s;
private int i;
private Main() {
}
public Main(String s, int i) {
this.s = s;
this.i = i;
}
public static Main newMain() {
return new Main();
}
}