change signature: do not show conflicts about non-changed param names

This commit is contained in:
Anna Kozlova
2012-06-09 16:11:10 +04:00
parent 2daf083b18
commit e0015d4888
4 changed files with 31 additions and 1 deletions
@@ -0,0 +1,11 @@
class D {
void f<caret>oo(Object o){}
}
class DImpl extends D {
void foo(Object o1) {
super.foo(o1);
int o = 0;
System.out.println(o);
}
}
@@ -0,0 +1,11 @@
class D {
void foo(Object o, boolean b){}
}
class DImpl extends D {
void foo(Object o1, boolean b) {
super.foo(o1, b);
int o = 0;
System.out.println(o);
}
}
@@ -134,6 +134,13 @@ public class ChangeSignatureTest extends LightRefactoringTestCase {
}, false);
}
public void testParamNameNoConflict() throws Exception {
doTest(null, new ParameterInfoImpl[]{
new ParameterInfoImpl(0),
new ParameterInfoImpl(-1, "b", PsiType.BOOLEAN)
}, false);
}
public void testParamJavadoc() throws Exception {
doTest(null, new ParameterInfoImpl[] {
new ParameterInfoImpl(1, "z", PsiType.INT),