convert parameter to local: change method signature accordingly (IDEA-88339)

This commit is contained in:
Anna Kozlova
2012-08-15 22:08:46 +04:00
parent b955ffd093
commit b180abd8fb
4 changed files with 81 additions and 12 deletions
@@ -0,0 +1,12 @@
// "Convert to local variable" "true"
class Temp {
void foo() {
<caret>int x = 5;
System.out.println(x);
}
void bar() {
foo();
}
}
@@ -0,0 +1,12 @@
// "Convert to local variable" "true"
class Temp {
void foo(int <caret>x) {
x = 5;
System.out.println(x);
}
void bar() {
foo(2);
}
}