mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
introduce parameter: don't show conflicts between new param name and parameter to remove (IDEA-140607)
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
public void foo(final String anObject) {
|
||||
bar(anObject);
|
||||
}
|
||||
void bar(String f){}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
public void foo(Object anObject) {
|
||||
bar(anObject.toStrin<caret>g());
|
||||
}
|
||||
void bar(String f){}
|
||||
}
|
||||
@@ -314,6 +314,10 @@ public class IntroduceParameterTest extends LightRefactoringTestCase {
|
||||
doTest(IntroduceParameterRefactoring.REPLACE_FIELDS_WITH_GETTERS_ALL, true, false, true, false);
|
||||
}
|
||||
|
||||
public void testConflictingNameWithParameterToDelete() {
|
||||
doTest(IntroduceParameterRefactoring.REPLACE_FIELDS_WITH_GETTERS_ALL, true, false, true, false);
|
||||
}
|
||||
|
||||
private void doTestThroughHandler() {
|
||||
configureByFile("/refactoring/introduceParameter/before" + getTestName(false) + ".java");
|
||||
boolean enabled = true;
|
||||
|
||||
Reference in New Issue
Block a user