mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
deep delete parameter: ensure parameter used in the same call passed to another params is not suggested
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
void foo(String <caret>s, String p) {}
|
||||
|
||||
void bar(String s, String p) {
|
||||
foo(s, s.substring(0));
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
void foo(String p) {}
|
||||
|
||||
void bar(String s, String p) {
|
||||
foo(s.substring(0));
|
||||
}
|
||||
}
|
||||
@@ -92,6 +92,10 @@ public class SafeDeleteTest extends MultiFileTestCase {
|
||||
doSingleFileTest();
|
||||
}
|
||||
|
||||
public void testNoDeepDeleteParameterUsedInNextArgumentExpression() throws Exception {
|
||||
doSingleFileTest();
|
||||
}
|
||||
|
||||
public void testToDeepDeleteParameterOverriders() throws Exception {
|
||||
doSingleFileTest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user