mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: new signature detector: add unused parameters to method calls as refs to initial vars
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
public class Test {
|
||||
{
|
||||
int x = 0;
|
||||
|
||||
<selection>System.out.println("foo".substring(x));</selection>
|
||||
|
||||
System.out.println("bar".substring(x));
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
public class Test {
|
||||
{
|
||||
int x = 0;
|
||||
|
||||
newMethod(x, "foo".substring(x));
|
||||
|
||||
newMethod(x, "bar".substring(x));
|
||||
}
|
||||
|
||||
private void newMethod(int x, String substring) {
|
||||
System.out.println(substring);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user