IDEA-15281 A method/constructor parameter which is written (before read) should be treated as redundant implemented

This commit is contained in:
Danila Ponomarenko
2012-05-18 19:15:24 +04:00
parent 9e1f37939e
commit 2968482da4
23 changed files with 669 additions and 181 deletions
@@ -0,0 +1,14 @@
// "Convert to local variable" "true"
class Temp {
public boolean flag;
void test(int <caret>p) {
if (flag) {
p = 1;
}
else {
p = 2;
}
System.out.print(p);
}
}