mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
inplace introduce: do not replace identifier with method expr even when ref names equals (IDEA-97536)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class A {
|
||||
int f() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void m() {
|
||||
f<caret>();
|
||||
f();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class A {
|
||||
int f() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void m(int f) {
|
||||
f();
|
||||
}
|
||||
}
|
||||
@@ -69,6 +69,14 @@ public class InplaceIntroduceParameterTest extends AbstractJavaInplaceIntroduceT
|
||||
});
|
||||
}
|
||||
|
||||
public void testParamNameEqMethodName() throws Exception {
|
||||
doTest(new Pass<AbstractInplaceIntroducer>() {
|
||||
@Override
|
||||
public void pass(AbstractInplaceIntroducer inplaceIntroducePopup) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getBasePath() {
|
||||
return BASE_PATH;
|
||||
|
||||
Reference in New Issue
Block a user