suggest to rename constructor params when property name is the same (IDEA-85979)

This commit is contained in:
Anna Kozlova
2012-05-14 18:27:41 +04:00
parent fbd775fc8b
commit 2a03100cb3
4 changed files with 21 additions and 1 deletions
@@ -0,0 +1,7 @@
class Test {
private boolean is<caret>Flag = false;
public Test(boolean isFlag) {
this.isFlag = isFlag;
}
}
@@ -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");