mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
change signature: do not show conflicts about non-changed param names
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user