EA-38866 - AIOOBE: ParameterCanBeLocalInspection$ConvertParameterToLocalQuickFix.applyChanges

This commit is contained in:
Anna Kozlova
2012-09-10 18:47:49 +04:00
parent 61f80166a6
commit b2d6e4266f
3 changed files with 30 additions and 3 deletions
@@ -0,0 +1,12 @@
// "Convert to local variable" "true"
class Temp {
void foo(int k) {
int x = 5;
System.out.println(x);
}
void bar() {
foo(42);
}
}
@@ -0,0 +1,12 @@
// "Convert to local variable" "true"
class Temp {
void foo(int <caret>x, int k) {
x = 5;
System.out.println(x);
}
void bar() {
foo(2, 42);
}
}