mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
suggest to rename constructor params when property name is the same (IDEA-85979)
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
private boolean is<caret>Flag = false;
|
||||
|
||||
public Test(boolean isFlag) {
|
||||
this.isFlag = isFlag;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
private boolean pp = false;
|
||||
|
||||
public Test(boolean pp) {
|
||||
this.pp = pp;
|
||||
}
|
||||
}
|
||||
@@ -78,6 +78,10 @@ public class RenameLocalTest extends LightRefactoringTestCase {
|
||||
public void testRenameInPlaceParamInOverriderAutomaticRenamer() throws Exception {
|
||||
doTestInplaceRename("pp");
|
||||
}
|
||||
|
||||
public void testRenameFieldWithConstructorParamAutomatic() throws Exception {
|
||||
doTest("pp");
|
||||
}
|
||||
|
||||
public void testRenameInPlaceParamInOverriderAutomaticRenamerConflict() throws Exception {
|
||||
doTestInplaceRename("pp");
|
||||
|
||||
Reference in New Issue
Block a user