IDEA-123034 Unused assignment inspection - Remove quick fix

This commit is contained in:
Anna Kozlova
2014-03-28 17:42:10 +01:00
parent 94a0eb47bf
commit fddab7b0c0
7 changed files with 108 additions and 9 deletions
@@ -0,0 +1,8 @@
// "Remove redundant assignment" "true"
class A {
void m() {
int i;
i = 0;
System.out.println(i);
}
}
@@ -0,0 +1,9 @@
// "Remove redundant assignment" "true"
class A {
void m() {
int i;
<caret>i = 9;
i = 0;
System.out.println(i);
}
}